Accenture Interview Question

Hashmap interenal process,why overriding hashcode and equals method