Sollicitatievraag bij Ververica

What has one to consider while implementing 'hashCode' and 'equals' in Java?