title: Hashcode contract in java?
body: <blockquote>
    <p>Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified</p>
  </blockquote>
  
  <p>Above statement is written at <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html#hashCode" rel="nofollow">http://download.oracle.com/javase/6/docs/api/java/lang/Object.html#hashCode</a>()
  under hashcode contract. </p>
  
  <p>I have a question on statement i.e </p>
  
  <blockquote>
    <p>provided no information used in equals comparisons on the object is
    modified</p>
  </blockquote>
  
  <p>Even if we modify equals method  still hashcode will return the same integer . so howcome hash code value is dependent on objects equal comparison.</p>