Unit 2.6

Comparing Boolean Expressions

AP Computer Science A

Selection and Iteration

Learning Objectives

By the end of this lesson, you will be able to:

  • 2.6.A Compare equivalent Boolean expressions
  • 2.6.B Develop code to compare object references using Boolean expressions and determine the result of these expressions

Key Topics:

  • Boolean expression equivalency
  • Truth tables
  • De Morgan's Law
  • Object reference comparison with == and !=
  • Using the equals() method
1 / ?