Language Fundamentals on Java related Questions and Answers


Question :   Which one is a valid declaration of a boolean?
1. boolean b1 = 0;
2. boolean b2 = 'false';
3. boolean b3 = false;
4. boolean b4 = Boolean.false();
Answer :   3 - boolean b3 = false;  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter