dcsimg
Arraylist, Vector, HashTable
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Susmav_vanka
Posted On:   Monday, January 14, 2002 07:54 PM

Hi,

Arraylist, Vector, HashTable.
Out of these three which is the faster to access an element.

Please help me.

Thanks.

Re: Arraylist, Vector, HashTable

Posted By:   AlessandroA_Garbagnati  
Posted On:   Tuesday, January 15, 2002 03:57 AM

Hi,

Between ArrayList and Vector, the fastest is ArrayList simply because it is not synchronized.


I would not compare Hashtable with the other two classes, because they implements different interfaces. ArrayList and Vector implement java.util.List, while Hashtable implements java.util.Map.

About | Sitemap | Contact