Java MCQ - English
Which of these values can a boolean variable contain?
True & False
0 & 1
Any integer value
true
Answer : A
View More Related Question
1) Which of these can not be used for a variable name in Java?
2) In Java, the word true is ................
3) Literal can be of which of these data types?
4) What will be the output for the below code ?
public class Test
{
public static void main(String[] args)
{
byte i = 128;
System.out.println(i);
}
}
5) Which of these is long data type literal?