| |
GeekInterview.com > Interview Questions > J2EE > Core Java
| Print | |
Question: Array List Collections
Answer: What is Use of declaring an array list object like List list = new ArrayList() rather than creating object like ArrayList arr = new ArrayList(); |
| June 06, 2008 05:35:11 |
#4 |
| manjot.kr |
Member Since: June 2008 Total Comments: 1 |
RE: Array List Collections |
List is an interface where as Arraylist is a class. Arraylist implements all the methods in List... So the arraylist's methods are invoked as the method body is present in Arralist |
| |
Back To Question | |