title: Difference between Collection and Arraylist in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong> <br/>
    <a href="https://stackoverflow.com/questions/3356113/what-is-the-benefit-of-polymorphism-using-collection-interface-to-create-arrayli">What is the benefit of polymorphism using Collection interface to create ArrayList object?</a></p>
  </blockquote>
  
  
  
  <pre><code> ArrayList al=new ArrayList();
   Collection c=new ArrayList();
  </code></pre>
  
  <p>What is difference between object <code>al</code> and <code>c</code>? Are both of them are same or what?</p>