title: Changing Hashcode in runtime
body: <p>Everybody knows that it's better to use an immutable class as key in <code>HashMap</code>, and if we change object state then the JVM recalculates the hash code for that object.  </p>
  
  <p>Can someone make example where after changing the state of an object its hashcode changes? (in runtime)</p>