Logical Operators in Java

Logical Operators in Java are ! , && , ||

Logical not Operator (!)
It converts true to false and vice versa.
Logical and Operator (&&)
It will check all the conditions and if are true then it will be come true. If anyone is false then it become false.

Logical or Operator (||)
It will check all the conditions and if both are false then it become false. If anyone is it true it becomes true.

Post a Comment

0 Comments