Question d’entretien chez Morgan Stanley

Talk about hashcode() and equals()

Réponse à la question d'entretien

Utilisateur anonyme

2 juin 2018

HashCode and equals to function is implemented in HashMap,Even we can override HashCode and equals function Hashcode returns index calculated with the generated HashMap and equals come into action if same index is returned by hashcode