File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes difference between hashmap hashtable etc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference between hashmap hashtable etc" Watch "difference between hashmap hashtable etc" New topic

difference between hashmap hashtable etc

allyou wantis

Joined: May 01, 2004
Posts: 2
hi i want know difference between concrete map implementation like hashmap hashtable etc
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
allyou wantis,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
If you're looking for an understanding of the concepts, a good place to start might be a reading of Chapter 12, Section 3 of David J. Eck's Introduction to Programming Using Java.
You also might like to know that you can look at the source code for most all of the classes and interfaces in the J2SE API. As part of your SDK installation, you'll likely find a file named src.jar or in the J2SE SDK installation folder.
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
You can always do a search on different forums for this kind of question.
For example in the search string you can put 'Hashmap hashtable difference'.

SCJP, blog
sever oon
Ranch Hand

Joined: Feb 08, 2004
Posts: 268
Hashtable was the old, pre-Collections API data structure. HashMap is the new, post-Collections API way. Always use HashMap in new code.
Why did Sun feel it was necessary to retrofit old collections to a new API? It just confuses new developers, not to mention the contracts of the old classes. It makes me wonder why they thought it would be a good idea to make all the members of the new Collections API unsynchronized...and then think it's an even better idea to violate that by retrofitting the old data structures. So, is having all of the collections unsync'd a good idea or NOT?
Ahem. Sorry about that. Sometimes I just get SO ANGRY.
I agree. Here's the link:
subject: difference between hashmap hashtable etc
It's not a secret anymore!