Arraylist, Vector, HashTable
1 posts in topic
Flat View  Flat View

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


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

Please help me.


Re: Arraylist, Vector, HashTable

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


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