JavaRush /Java Blog /Random EN /Logical operators. Explain to me what is the difference?
asdusk05
Level 8
Маунтин-Вью

Logical operators. Explain to me what is the difference?

Published in the Random EN group
Logical operators.  Explain to me what is the difference?  - 1&— Logical AND (AND) &&— Abbreviated AND |— Logical OR (OR) ||— Abbreviated OR ^— Logical XOR (exclusive OR (OR)) !— Logical unary NOT &=— AND with assignment |=— OR with assignment ^=— XOR with assignment ==— Equal !=— Not equal ?:- Ternary (ternary) conditional operator operator To me, as a beginner, most of them are clear, and those that are not clear can be googled. But Google didn’t answer me, what is the difference between logical AND (OR) and abbreviated one? What is the fundamental difference (if any). In what cases can one or another operator be used? Thank you.
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION