Which Map implementation uses hash table and linked list to maintain order?

  1. HashMap
  2. TreeMap
  3. LinkedHashMap
  4. EnumMap
Correct answer LinkedHashMap

Explanation

LinkedHashMap uses a hash table and a doubly-linked list to maintain insertion order.

Update: Admin added a tag on this question

Topics

By Admin · · 32 views