title: Different Ways of Creating HashMaps
body: <p>I've been learning about HashMaps recently but I have one question that I can't seem to get a clear answer on. The main difference between -</p>
  
  <pre><code>HashMap hash1 = new HashMap();
  </code></pre>
  
  <p>vs </p>
  
  <pre><code>HashMap&lt;,&gt;hash1 = new HashMap &lt;,&gt; (); //Filled in with whatever Key and Value you want. 
  </code></pre>
  
  <p>I thought when you define a HashMap it requires the Key and Value. Any help would be much appreciated. Thank You.</p>