Java Boolean Short Circuit Evaluation

preview_player
Показать описание
What's the difference between the & AND operator and the && AND operator in Java? The && is the short circuit and operator and will only the entire condition if needed. As soon as it finds an expression in the condition that doesn't satisfy the condition, it will "short circuit" and stop evaluating the rest of the expressions.

Learn more programming tips at Pragmatic Ways blog:

Join our Software Engineering Mastermind Group on Facebook:

Want to write cleaner code? Purchase the Clean Code book on Amazon! I promise you won't regret it!
Рекомендации по теме
Комментарии
Автор

i appreciate. Ive learned something thats been bothering me!

morrischoga