💻ap computer science a review

Short-circuit evaluation

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

An optimization where the result of a logical operation using && or || is determined by evaluating only the first Boolean expression, so the second expression is not evaluated.

AP course connection

Topic 2.5: 2.5 Compound Boolean Expressions

Unit 2

"Short-circuit evaluation" also found in: