Operators Java Tutorial

You use logical operators to Combine a number of conditions.
Logical operators operate on boolean values.
SymbolLong Name
&logical AND
&&conditional AND
|logical OR
||conditional OR
!logical negation (NOT)