dcsimg
COLLECTIONS
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, March 1, 2007 01:13 AM

which is better in performance orientation either ArrayList or LinkedList?If u support LinkedList why?

Re: COLLECTIONS

Posted By:   rahul123  
Posted On:   Tuesday, December 17, 2013 10:14 PM

Its depends on us for what purpose we are using
If we want to inserting element then linkedlist is best choice because in linklist we can add data in any place
If we want to retrive data then we should go for arraylist because ArrayList contain RandomAccess interface this interface is marker interface

Re: COLLECTIONS

Posted By:   salla_nagesh  
Posted On:   Wednesday, March 21, 2007 05:06 AM

In linkedlist we can add or delete elements easily

Re: COLLECTIONS

Posted By:   Robert_Lybarger  
Posted On:   Thursday, March 1, 2007 08:31 AM

You must always qualify and define what you mean by "performance" when you ask for a qualitative comparison. Insert speed? Access speed? Sortedness matter to you? Synchronization matter to you? Any given collections class is better than the other classes in some regard, which is why they all exist in the first place.
About | Sitemap | Contact