title: What happens if I return constant integer when overriding hashCode() function?
body: <p>When I use the <code>hashCode()</code> method in the following statement:</p>
  
  <pre><code>System.out.println(obj.getClass().getName() + "@" +
                    Integer.toHexString(System.identityHashCode(obj))); 
  </code></pre>
  
  <p>I get output like this:</p>
  
  <blockquote>
    <p>"Contact@29453f441"</p>
  </blockquote>
  
  <p>Which is unique for each individual object. What would the effect of overriding <code>hashCode()</code> be?</p>