Java MCQ - English
What is the range of byte data type in Java?
Home | Discussion ForumWhat 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 these literals can be contained in float data type variable?
2) What is the output of this program?class mainclass {
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
if (var1)
System.out.println(var1);
else
System.out.println(var2);
}
}
3) Which of the following is not provided by BigDecimal?
4) What is the output of below code snippet? class A
{
}
enum Enums extends A
{
ABC, BCD, CDE, DEF;
}
5) Which of the below data type doesn’t support overloaded methods for +,-,* and /?