A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
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?
Hide Source Code in Struts
Getting error while compiling
calculate duration between two dates
Displaying Binary Data Fetched with AJAX
The use of TreeMap
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015