A

Admin • 831.35K Points
Coach

Q. Which implementation allows predictable iteration order in Set?

  • (A) HashSet
  • (B) LinkedHashSet
  • (C) TreeSet
  • (D) EnumSet
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
LinkedHashSet maintains insertion order, making iteration predictable.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.