Which one is a valid declaration of a boolean?

Question:
Which one is a valid declaration of a boolean?

1.boolean b1 = 1;

2.boolean b2 = false;

3.boolean b3 = false;

4.boolean b4 = true

Posted Date:-2021-10-25 05:37:20


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!