๐Ÿ’ปap computer science a review

Equals()

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

The equals() method is used to compare two objects for equality. It checks if the values of the objects are the same, rather than comparing their memory addresses.

"Equals()" also found in: