title: Which is the best way of declaring arraylist
body: <p>Here is a two way of declaring a arraylist</p>
  
  <pre><code>1. List&lt;String&gt; l1 = new ArrayList&lt;String&gt;();
  2. ArrayList&lt;String&gt; l2 = new ArrayList&lt;String&gt;();
  </code></pre>
  
  <p>My question is whats the difference between these two declaration.</p>
  
  <p>And which is best way to declare an arraylist?</p>