Java MCQ : Data Types in Java (Multiple Choice Questions)


Question 1
Default value of character data type in Java Programming is ___________________.
A
undefine
B
0
C
null
D
'\u0000'
Question 2
Default value of String (or any object) in Java Programming is _____________.
A
0
B
null
C
'\u0000'
D
false
Question 3
Compiler never assigns a default value to an uninitialized local variable in Java Programming !!
A
True Statement
B
False Statement
Question 4
"Accessing an uninitialized local variable will result in a compile-time error in Java Programming"
A
False Statement
B
True Statement
Question 5
Which of the following data type is not considered as data type in Java Programming.
A
int
B
char
C
boolean
D
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.