Accenture Interview Question

What is the contract between hasCode and equals method?