What is difference between hashmap and linkedhashmap?



What is difference between hashmap and linkedhashmap?..

Answer / Manoj Kumar Bharti

HashMap does not guarantee the order of insertion whereas LinkedHashMap maintains the insertion order, either from front to back (accessOrder=false) or back to front (accessOrder=true).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Is heap sort faster than quicksort?

1 Answers  


To describe the Complexity of Binary search, Quicksort and various other sorting and searching techniques..

0 Answers   HPCL, Hughes Systique Corporation,


Define a binary tree?

1 Answers  


What do you mean by recursive definition?

1 Answers  


What is map keyset?

1 Answers  


What is difference between capacity and size of arraylist?

1 Answers  


How is it possible to insert different type of elements in stack?

7 Answers   TCS,


How will inorder, preorder and postorder traversals print the elements of a tree?

11 Answers  


What differences exist between hashmap and hashtable?

1 Answers  


Is hashmap an object?

1 Answers  


Define a path in a tree?

1 Answers  


Model a data structure for a DFA that takes an event as parameter and performs a desired action.

1 Answers   Adobe,


Categories