A

Admin • 831.24K Points
Coach

Q. Which of the following is a valid syntax to synchronize the HashMap?

  • (A) HashMap map =hashMap.synchronizeMap();
  • (B) Map m = hashMap.synchronizeMap();
  • (C) Map m2 = Collection.synchronizeMap(hashMap);
  • (D) Map m1 = Collections.synchronizedMap(hashMap);
  • Correct Answer - Option(D)
  • Views: 15
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.