Pregunta de entrevista de American Modern Insurance

What’s the difference between .equals() and hash code