title: Diamond operator ArrayList
body: <p>What is the difference between</p>
  
  <pre><code>ArrayList&lt;Integer&gt; list = new ArrayList&lt;&gt;();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>ArrayList&lt;Integer&gt; list = new ArrayList();
  </code></pre>
  
  <p>Are the diamond operator when I create a new ArrayList necessary?</p>