aspose file tools
The moose likes Java in General and the fly likes HashMap and LinkedHashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "HashMap and LinkedHashMap" Watch "HashMap and LinkedHashMap" New topic
Author

HashMap and LinkedHashMap

S Majumder
Ranch Hand

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

regards,
S
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 341
Please search. Surely, you will get many valuable replies.


http://muhammadkhojaye.blogspot.com/
Jitendra Takalkar
Greenhorn

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.

HashMap:
no guarantees as to the order of the map

LinkedHashMap:
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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HashMap and LinkedHashMap
 
Similar Threads
Map Question
displaying key of a hashmap,wrong order
LinkedHasMap Question
Objects and Collections
What is a data structure for Map that preserves insert order?