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
members
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
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet