Solution:
By defining equals() and hashCode() consistently, the candidate can improve the usability of classes as keys in hash-based collections such as HashMap.
equals()
hashCode()
Credit: 3870