Programming Languages Java Objective
Mar 01, 2013

Which one is a valid declaration of a boolean?

Choose the correct answer:
A) boolean b1 = 0;
B) boolean b2 ='false';
C) boolean b3 = false;
D) boolean b4 = Boolean.false();
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback