GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  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