Java MCQ - English
What is the numerical range of a char data type in Java?
Home | Discussion ForumWhat is the numerical range of a char data type in Java?
-128 to 127
0 to 256
0 to 32767
0 to 65535
Answer : D
View More Related Question
1) What is the order of variables in Enum?
2) What is the output of this program? class booloperators {
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
System.out.println((var2 & var2));
}
}
3) What is BigDecimal.ONE?
wrong statement
custom defined statement
static variable with value 1 on scale 10
static variable with value 1 on scale 0
View Answer
4) What is the base of BigDecimal data type?
5) If we try to add Enum constants to a TreeSet, what sorting order will it use?
Sorted in the order of declaration of Enums
Sorted in alphabetical order of Enums
Sorted based on order() method
Sorted in descending order of names of Enums
View Answer