💻ap computer science a review

Equality comparison

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

Testing whether two values are equal using the == operator for primitives or the .equals() method for objects.

AP course connection

Topic 2.2: 2.2 Boolean Expressions

Unit 2

"Equality comparison" also found in: