Accenture interview question

Hashmap interenal process,why overriding hashcode and equals method