And, or, not, and short-circuiting

&& is true only when both sides are, || when at least one is, and ! flips a value, and Java stops as soon as the left side settles the answer, which is what lets a guard like x != 0 && 10 / x > 2 avoid dividing by zero.

From AP Computer Science A.