Java MCQ : Data Types in Java (Multiple Choice Questions)
Question 1 |
Which of the following is data type stores longest ______________ floating point number.
boolean | |
double | |
float | |
long |
Question 2 |
Which of the following data type(s) can store 64 bit Value.
float | |
double | |
long | |
int |
Question 3 |
Short data type has a minimum value of _____________.
-127 | |
-32,768 | |
-2,147,483,648 | |
-32,767 |
Question 4 |
Default value of variable having boolean data type is ___________.
0 | |
1 | |
false | |
true |
Question 5 |
Default value of "double" data type is ___________.
0.0d | |
null | |
0.0 | |
0 |
There are 5 questions to complete.