Java Booleans
In programming, we will need a data type that can only have one of two values, like:
- YES / NO
- ON / OFF
- TRUE / FALSE
Java has a boolean
data type, which can store true
or false
values.
In programming, we will need a data type that can only have one of two values, like:
Java has a boolean
data type, which can store true
or false
values.