A

Admin • 830.13K Points
Coach

Q. Which of the following guarantees thread-safety?

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

Explanation by: Admin
ConcurrentHashMap is designed to provide thread-safe access to the map.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.