I\'m wondering if it\'s guaranteed that in a Java program, the boolean expression on the right of a conjunction (exp2 above) will NOT be evaluated as long as the expression
From the Java Language Specification, 15.23 Conditional-And Operator &&:
The
&&
operator is like&
(§15.22.2), but evaluates its right-hand operand only if the value of its left-hand operand is true.
So the language spec guarantees that the right-hand side of your expression will not be evaluated if the left hand side is false.