Should equals(Object) method be overridden when overriding hashCode() in java
<p>Should equals(Object) method be overridden when overriding hashCode() in java</p>

<p>have read the contract that overriding equals , you should override hashCode , is the vice versa true.</p>

<p>Was thinking of a scenario where i dont compare objects , no equals mehod </p>

<p>Thanks
Abhi</p>
