Pregunta de entrevista de CoreFiling

Explain the difference between .equals() and .hashCode() in Java.