Java MCQ - English
Which of these literals can be contained in float data type variable?
-1.7e+308
-3.4e+038
+1.7e+308
-3.4e+050
Answer : B
View More Related Question
1) What is the base of BigDecimal data type?
2) What is the output of below code snippet? class A
{
}
enum Enums extends A
{
ABC, BCD, CDE, DEF;
}
3) Automatic type conversion in Java takes place when
Two type are compatible and size of destination type is shorter than source type.
Two type are compatible and size of destination type is equal of source type.
Two type are compatible and size of destination type is larger than source type.
All of the above
View Answer
4) Which of these coding types is used for data type characters in Java?
5) What is the output of this program? class asciicodes {
public static void main(String args[])
{
char var1 = 'A';
char var2 = 'a';
System.out.println((int)var1 + " " + (int)var2);
}
}