File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes HashMap and LinkedHashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "HashMap and LinkedHashMap" Watch "HashMap and LinkedHashMap" New topic

HashMap and LinkedHashMap

S Majumder
Ranch Hand

Joined: Jun 03, 2009
Posts: 346
Hi exery body what is the difference between HashMap & LinkedHashMap ?

Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Please search. Surely, you will get many valuable replies.
Jitendra Takalkar

Joined: Jan 12, 2007
Posts: 9
HashMap is an implementation of Map interface. LinkedHashMap which extends HashMap i.e. implementation of Map interface. The differnce between the HashMap and LinkedHashMap is in the way of implementation of Hash table.

no guarantees as to the order of the map

it maintains a doubly-linked list running through all of its entries. This linked list defines the iteration ordering.
I agree. Here's the link:
subject: HashMap and LinkedHashMap
It's not a secret anymore!