Capgemini Engineering interview question

What is the reason for overriding equals() and hashCode() methods?

Capgemini Engineering Interview Question: What is the reason for overriding equals() and hashCode() methods? | Glassdoor