Possible Duplicate:
Does Java evaluate remaining conditions after boolean result is known?
When executing code with multiple &&
statements in java, does the compiler continue to resolve additional boolean comparisons if the first one resolves to false?
if (1==2 && 3==4 && 4==5) { Do Something }
Once determining 1==2
is false, will the compiler immediately break out of the if statement or will it continue to resolve 3==4
and 4==5
after?