Domanda di colloquio di Broker Consulting

What is the contract between equals() and hashCode() in Java?