Pregunta de entrevista de Aptara

why hashmap uses hashcode and equals method