[Java] Difference between Logical Operators &, &&, |, ||
Logical operators include
Logical OR |, ||
Logical AND &, &&
Logical eXclusive OR ^
But why Logical OR and Logical AND has two different operators? What difference between | and ||? What difference between & and &&?
如果你想閱讀中文版本,請點 這裡 。
| and || both...
zhaochen.hashnode.dev