Accenture interview question

What is the contract between hasCode and equals method?