Logical Operators

The logical operators; also known as the Boolean logical operators are used to perform logical operations in Java; that is a condition-based decision. Below is the list of logical operators in Java programming language. 

 

Operator

Name

Description

&&

Logical AND

The logical AND will only return a true value when both conditions are met.

||

Logical OR

The logical OR unlike the logical AND will return a value if one of the conditions are met and also when both conditions are true.

 

Click here to read more