A

Admin • 828.03K Points
Coach

Q. Which class is best suited when Map order needs to be preserved and fast iteration is needed?

  • (A) HashMap
  • (B) TreeMap
  • (C) LinkedHashMap
  • (D) EnumMap
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
LinkedHashMap maintains insertion order and provides faster iteration.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.