Pregunta de entrevista de Revolut

Tell about equals () and hashCode() in Java objects.