Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > logical operator
Next operatornew operator    Upoperator    Previous operatoridentity comparison operator   

logical operator comparison table
Subject use evaluate have purpose is an instance of indicate
!  to negate the value of the operandunary operatorlogical NOT
&an infix notationboth its operandsto return true if both operands evaluate to true logical operator 
&&an infix notationits second operand only if the first operand returns trueto return true if both operands evaluate to true short circuit operatorlogical AND
|an infix notationboth its operandsto return true if at least one of its operands evaluates to true logical operator 
||an infix notationits second operand only if the first operand returns falseto return true if at least one of its operands evaluates to true short circuit operatorlogical OR

Next operatornew operator    Upoperator    Previous operatoridentity comparison operator