This might seem a very stupid question but i'm really confused.
wht is the use of declaring something polymorphically.. eg what adavantages would i reap if i say List f=new ArrayList() instead of ArrayList f= new Arraylist(). at runtime as it the actual object it refers to would be used.
Please help me with this... if it is a very basic and simple question, i do apologize before hand.