Java MCQ - English
Which one is a valid declaration of a boolean?
boolean b1 = 1;
boolean b2 = ‘false’;
boolean b3 = false;
boolean b4 = ‘true’
Answer : C
View More Related Question
1) In Java, the word true is ................
2) Java is a _______ language.
3) Literal can be of which of these data types?
4) Which of these can not be used for a variable name in Java?
5) Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?