Logical Operators

A logical operator (sometimes called a “Boolean operator”) is an operator that returns a Boolean result that’s based on the Boolean result of one or two other expressions. Sometimes, expressions that use logical operators are called “compound expressions” because the effect of the logical operators is to let you combine two or more condition tests into a single expression.

tb

CrossRef.eps For more information, see Not Operator, And Operators, and Or Operators.

Get Java For Dummies Quick Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.