title: Difference of List and ArrayList in declaration?
body: <p>Is there a difference between these two? If so, what is it?</p>
  
  <pre><code>List&lt;Integer&gt; x = new ArrayList&lt;Integer&gt;();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>ArrayList&lt;Integer&gt; x = new ArrayList&lt;Integer&gt;();
  </code></pre>