Why equals() method must be compatible with compareTo in java ?

Similar questions and discussions