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: Share Manage Tags
Discusssion
Login to discuss.