Back to Boolean Expressions and if Statements

Lesson PreviewLesson 7 of 8 in this unit

3.7 Comparing Objects

Part of Boolean Expressions and if Statements in AP® Computer Science A. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.

Before we get into our lesson, let's quickly review reference data types—you'll see why this is important soon. Unlike primitive types which hold actual values, reference types store memory addresses that point to objects. Assigning one reference variable to another makes them point to the same object, creating aliases of the same object.

Continue the full lesson in Stellar

Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Computer Science A.