title: whether Linkedlist will be formed if we override both hashCode() and equals()?
body: <p>I have questions while implementing the hashmap for customized Employee class.</p>
  
  <ol>
  <li><p>Overriding only <code>Hash()</code></p>
  
  <p>I have overridden only <code>hash()</code> of employee class. so, I get same hashcode value for same objects. If I don't override equals(), then it would be fine right? since the <code>equals(</code>) of object class compares the reference (where I got the same ref for equal objects). Anyhow, based on my logic, I will never get same hash for different emp objects. So it would be fine to leave the <code>equals()</code>?</p></li>
  <li><p>If we override both <code>Equals()</code> and <code>hashcode()</code>, then we will always have unique value? so there won't be the possibility of getting Linkedlist in a single bucket location?</p></li>
  <li><p>When we override the equals(), in first line we will always give (this == o). In this case, Even after overriding the hashcode(), if i get same hashcode for 2 diff employee object, the first line will always gets satisfied if same hashcode returned. Then what is the use of having the remaining logic in equals()?</p></li>
  </ol>