Card 26 / 76: What literal values are acceptable to use with the boolean primitive?
A)
true and false
B)
true, false, and null
C)
true, false, TRUE, and FALSE
D)
TRUE and FALSE
Answer:
A) true and false
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
B, C, and D are incorrect.
TRUE, FALSE, and null are all invalid literals for the boolean primitive.
The null value is a valid literal for the Boolean wrapper class.
|