Consequence when compareTo() is inconsistent with equals()
<p>Can somebody put some light on what are the Consequences when <code>compareTo()</code> is inconsistent with <code>equals()</code> of a class. I have read that if <code>Obj1.compareTo(Obj2) = 0</code> then it's not mandatory to be <code>Obj1.equals(Obj2) = true</code>. But what is the consequence if this happens. Thanks.</p>
