dcsimg
Choosing the best collection
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Thaduus_Pole
Posted On:   Thursday, April 22, 2004 08:48 PM


For each of the following collections, how is performance effected as the size of the collection increases ?



1. ArrayList

2. Hashset

3. Hashmap

4. Treemap




Which is best for handling a small number of objects ?



Which is best for handling a large number of objects ?



Thanks much !!

Re: Choosing the best collection

Posted By:   Srikanth_B  
Posted On:   Wednesday, July 7, 2004 01:08 AM



I think the aim of introducing the list,set and map are for different purposes and hence you cannot compare a set with a map and a list.




One thing is Hashmap and Treemap can be compared is what I am sure abt .

About | Sitemap | Contact