Java logical operators

& and, both operands are evaluted

| or, both operands are evaluated

^ Xor, returns true if one and only one is true

! not

&& conditional and, if the left operand is false, returns false without evaluating the right one

|| conditional or, if the left operand is true, returns true without evaluating the right one

posted @ 2021-11-22 11:53  ChargingCat  阅读(36)  评论(0)    收藏  举报