title: Polymorphic call
body: <p>I am new to java, I have seen in the code at many places where my seniors have declared as</p>
  
  <p><code>List myList = new ArrayList();</code>  (option1)</p>
  
  <p>Instead of </p>
  
  <p><code>ArrayList myList = new ArrayList();</code>  (option2)</p>
  
  <p>Can you please tell me why people use Option1, is there any advantages?</p>
  
  <p>If we use option2, do we miss out any advantages or features?</p>