Boolean Expressions & if Statements

What Is a Boolean Expression? A boolean expression is any expression that evaluates to one of two values: true or false. In Java these values have the primitive type boolean . Boolean expressions are the engine behind every decision a program makes. Relational

8 lessons, each with runnable code in the browser.

  1. Relational Operators & boolean Values
  2. The if Statement
  3. if / else and else if
  4. Logical Operators: && || !
  5. Nested if Statements
  6. Short-Circuit Evaluation
  7. De Morgan's Laws & Negating Conditions
  8. Equivalent Boolean Expressions & FRQ Practice

Compilearn home