## Java Program to Elaborate Boolean

Now, In this Java Program to Elaborate Boolean, you should have the knowledge of following topics:

1.Input & Output

2.Variables and Data Types

3.Operators

class Bool{ public static void main(String args[]){ boolean b; b=(1<5)&&(1==1); System.out.println(b); } }

**Output:**

In Java, the **boolean** data type is a primitive data type, which means it comes packaged with the programming language. A Boolean data type can only have a value of either true of false. Note that these are keywords that are reserved by the programming language: they cannot be used for variable, function, class, or object names!

So In this program whatever gets evaluated will be return as either True or False….

Most Importantly as mentioned above Java uses all the mathematics operation therefore by Changing **(+)** operator, we can subtract **(-)**, multiply **(*)**, divide **(/)**, floor divide **(//)** or find the remainder (%) of two numbers.

**Related Program**

1.Java Program to find the area of Triangle

2.Java Program to Solve Quadratic Equation

3.Java Program to Generate a Random Number

Ask your questions and clarify your/others doubts by commenting. Java Documentation