Domanda di colloquio di Morgan Stanley

Talk about hashcode() and equals()

Risposta di colloquio

Anonimo

2 giu 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