Computer Science, asked by mithu25, 1 year ago

what do you understand by boolean variable data type ? what is its default value ?

Answers

Answered by aarusheh
3
boolean variable data type is a primitive data type in Java. It is used for logical values.


It can have only two outputs: true or false
It's default value is false
It's size is 1 bit (smallest)
Answered by Neilson
2
the Boolean data type is a data type, having two values (usually denoted true and false), intended to represent the truth values of logic and Boolean algebra.The Boolean data type is primarily associated with conditional statements, which allow different actions and change control flow depending on whether a programmer-specified Boolean condition evaluates to true or false. It is a special case of a more general logical data type; logic need not always be Boolean.
Default ValuesData Type Default Value (for fields) double0.0d char'\u0000'String (or any object) null boolean false
Similar questions