Pergunta de entrevista da empresa Morgan Stanley

Talk about hashcode() and equals()

Resposta da entrevista

Sigiloso

2 de jun. de 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