Pregunta de entrevista de Barclays

What is a difference between equals and hashcode.