Home » Java Programming » Language Fundamentals

Which one is a valid declaration of a boolean?

Correct Answer: boolean b3 = false;

Explanation:

A boolean can only be assigned the literal true or false.

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion