Java MCQ - English
What is the range of byte data type in Java?
-128 to 127
-32768 to 32767
-2147483648 to 2147483647
None of the mentioned
Answer : A
View More Related Question
1) Which of the following is not provided by BigDecimal?
2) What is the output of this program? class mainclass {
public static void main(String args[])
{
char a = 'A';
a++;
System.out.print((int)a);
}
}
3) Which of the following are legal lines of Java code?
4) What is the limitation of toString() method of BigDecimal?
There is no limitation
toString returns null
toString returns the number in expanded form
toString uses scientific notation
View Answer
5) What is the order of variables in Enum?