View Single Post
 
Old September 11th, 2007, 04:32 AM
neo.isbackin.thematrix neo.isbackin.thematrix is offline
Registered User
 
Join Date: Aug 2007
Location: Mumbai, Maharashtra, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to neo.isbackin.thematrix
Default

Hi,

Well, the difference between an ArrayList and LinkedList is between the Algorithm used to construct both.

As the name suggests, LinkedList uses 'LinkedList' Algorithm which is Doubly LinkedList. So it every element in it is connected to its previous element and next element which is not the case in ArrayList.

The usage of them is suggested dependending upon the design of ur code. Like Traversal and Addition is faster in the case of ArrayList than LinkedList but Deletion of one element is Faster in case of LinkedList. So depending upon your requirement, you can use them.