filmov
tv
Java Tutorials - 23 Boolean Expressions (Short Circuited Logic)

Показать описание
The Java programming language implements short circuit logic when using the && and || operators. In some cases, it is not necessary to evaluate both left and right operands when using these operators. In such cases, the outcome of a boolean expression can be determined without evaluating the right operand. In turn, efficiency is increased.