Which One Is A Valid Declaration Of A Boolean #15
Which one is a valid declaration of a boolean?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Data Types Variables Arrays - Java Character and Boolean Data Types - Quiz No.1.
Which one is a valid declaration of a boolean?
boolean b1 = 1;
boolean b2 = ‘false’;
boolean b3 = false;
boolean b4 = ‘true’