Pergunta de entrevista da empresa Barclays

What is a difference between equals and hashcode.