Which one is a valid declaration of a boolean? select one: boolean b4 = boolean.false(); boolean b1 = 0; boolean b5 = no; boolean b3 = false; boolean b2 = 'false';?
Answers
Answered by
3
what do you want to do in this question
Answered by
5
Answer:
Valid declaration for Boolean is boolean b3 = false;
"Boolean" is a "data type" that can either be "True or False". Boolean expressions are logical statements used to find out whether a "given condition" is "true or not". The correct format of declaring a Boolean is “boolean b3=false” where “boolean" is the key word defining the "Boolean data type", “b3” is a variable and “false” is the permissible value that a "Boolean variable" can hold.
Similar questions