Skip to main content

Logical Operators: AND, OR & NOT

Learn Logical Operators: AND, OR & NOT (Operators, MySQL) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Introduction AND , OR , NOT (also written && , || and ! ) combine conditions. XOR is true when exactly one side is true. They follow three-valued logic with NULL, and AND binds tighter than OR.

More lessons in Operators