A boolean data type holds values of either true or false.
boolean |
The “boolean” keyword represents a data type exclusively capable of holding either true or false values.
Boolean values primarily serve in conditional testing (refer to the Java Booleans Tutorial for further insights)