Computer Science, asked by sabit8020, 1 year ago

Select the valid declaration of a boolean. boolean b2 = 1; boolean b3 = ‘false'; boolean b4 = ‘true' boolean b1 = false;

Answers

Answered by oraclenaren200palkoj
16
Boolean b1=false;
perfectly,bool b2=(true or false)---->options for bool
Answered by smartbrainz
11

The correct valid declaration is boolean b1 = false.

Explanation:  

Boolean refers to a system of logical thought that is used to create true or false statements. A Boolean value expresses a truth value (which can be either true or false). A Boolean can only be assigned the literal true or false. The assignment operator in Boolean is assigned by a single equal sign ( = ).

Similar questions