title: WeakHashMap example
body: <p>I create a WeakHashMap as</p>
  
  <pre><code>WeakHashMap&lt;Employee,String&gt; map = new WeakHashMap&lt;Employee,String&gt;();
  map.put(emp,"hello");
  </code></pre>
  
  <p>where emp is an Employee object. Now if I do emp = null or say emp object is no longer referenced, then will the entry be removed from the WeakHashMap i.e. will the size of Map be zero? <br/>And will it be vice-versa in case of HashMap?<br/>
  Is my understanding of WeakHashMap correct?</p>