Revolut Interview Question

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