Java MCQ : Data Types in Java (Multiple Choice Questions)
Question 1 |
Default value of character data type in Java Programming is ___________________.
undefine | |
0 | |
null | |
'\u0000' |
Question 2 |
Default value of String (or any object) in Java Programming is _____________.
0 | |
null | |
'\u0000' | |
false |
Question 3 |
Compiler never assigns a default value to an uninitialized local variable in Java Programming !!
True Statement | |
False Statement |
Question 4 |
"Accessing an uninitialized local variable will result in a compile-time error in Java Programming"
False Statement | |
True Statement |
Question 5 |
Which of the following data type is not considered as data type in Java Programming.
int | |
char | |
boolean | |
String |
Question 5 Explanation:
The String class is not technically a primitive data type, but considering the special support given to it by the language,
There are 5 questions to complete.