What method should the key class of Hashmap override | Eklavya Online

What method should the key class of Hashmap override

The methods to override are equals() and hashCode().