Computer Science, asked by gsubrata3392, 1 year ago

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 Anonymous
3
what do you want to do in this question
Answered by hotelcalifornia
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
English, 8 months ago