How To Externally Synchronize Hashmap #679
How to externally synchronize hashmap?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Util Collections Framework - Java HashMap - Quiz No.1.
How to externally synchronize hashmap?
HashMap.synchronize(HashMap a);
HashMap a = new HashMap(); a.synchronize();
Collections.synchronizedMap(new HashMap<String, String>());
Collections.synchronize(new HashMap<String, String>());