Boolean in Java.

In this tutorial, we are going to explore Java boolean a primitive data type. This data type has two values true or false.

Code :