Boolean

The boolean data type is used to store two possible values: true or false.

boolean isJavaFun = true;
boolean isRaining = false;

Is commonly used for conditional logic, decision-making, and flagging certain states.

Occupies one bit of memory (though it is generally optimized by the JVM to use a byte).

Related concepts

Boolean — Structure map

Clickable & Draggable!

Boolean — Related pages: