Boolean logical operators operate on boolean operands. They combine two boolean values and return a boolean value as a result. The table below shows some boolean operators and the result they respectively produce.

In the above table, A and B are boolean variables.
Become SUN SCJA certified. Download free practice test for SUN SCJA exam.