File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Hashmap or hashtable or ...., which one is faster for a searchable key value storage?
Joined: Jul 14, 2005
May 09, 2007 17:24:00
Thank you for reading my post
I am confused and i can not understand whether hashmap is faster or hashtable.
my requirement is to store a pair of key,value and be able to search based on key.
now, which collection class i should choose?
author and iconoclast
Joined: Jul 08, 2003
May 09, 2007 18:10:00
Originally posted by raminaa niilian:
which collection class i should choose?
Hashtable should never be used in new code except if you have to work with an older API that wants a Hashtable as a method argument. Otherwise, use
[Jess in Action]
I agree. Here's the link:
subject: Hashmap or hashtable or ...., which one is faster for a searchable key value storage?
The use of TreeMap
Hide Source Code in Struts
calculate duration between two dates
Getting error while compiling
Displaying Binary Data Fetched with AJAX
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014