Que 7.)
What is the default value of a boolean variable in Java?
-
true
-
false
-
null
-
0
option_b
By default, boolean variables in Java are initialized to false.
Que 8.)
Which data type is used to store decimal numbers in Java?
-
int
-
float
-
boolean
-
char
option_b
The `float` data type is used to store decimal numbers in Java.
Que 9.)
How many bytes does a `char` take in Java?
-
1 byte
-
2 bytes
-
4 bytes
-
8 bytes
option_b
In Java, the `char` type uses 2 bytes as it stores Unicode characters.