adplus-dvertising
frame-decoration

Question

Which one is a valid declaration of a boolean?

a.

boolean b1 = 1;

b.

boolean b2 = ‘false’;

c.

boolean b3 = false;

d.

boolean b4 = ‘true’

Answer: (c).boolean b3 = false;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which one is a valid declaration of a boolean?