WHY each object in java contains a hashcode number
<p>I just wanted to know WHY each object in java contains a hashcode number. Why each object is assigned a different hashcode generally but two hashcode numbers may have different value. </p>

<p>The rule "The rule ?If two keys are same, there hashcode number will be generated same but if two hashcode numbers are same, there key may be same or different."</p>

<p>Why hashcode number is same if two keys (in hashtable context) are same? </p>
