How can we make Hashmap synchronized | Eklavya Online

How can we make Hashmap synchronized

HashMap can be synchronized by Map m = Collections.synchronizedMap(hashMap);