Multiple choice technology programming languages

Whenever the "&&" operator is used, such as in: exp1 && exp2 where exp1 and exp2 are boolean expressions, both the boolean expressions are not always evaluated.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The '&&' operator is a short-circuit logical AND operator in Java. If the first expression evaluates to false, the overall outcome is guaranteed to be false, so the second expression is skipped. This behavior avoids unnecessary evaluations and potential errors in the second expression.