Which of the following is a valid syntax to synchronize the HashMap? - Study24x7
Social learning Network
20 Feb 2024 12:36 PM study24x7 study24x7

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

A

Map m = hashMap.synchronizeMap();

B

HashMap map =hashMap.synchronizeMap();

C

Map m1 = Collections.synchronizedMap(hashMap);

D

Map m2 = Collection.synchronizeMap(hashMap);

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles