Please find java doc
Returns a synchronized (thread safe) card supported by the specified card. To ensure consistent access, it is imperative that all access to the support card is through a returnable card. It is imperative that the user manually synchronizes on the returned map when repeating any of their collection types:
Map m = Collections.synchronizedMap(new HashMap()); ... Set s = m.keySet();
Failure to follow this advice can lead to deterministic behavior. The returned map will be serialized if the specified map is serializable.
Parameters: m card must be "wrapped" in a synchronized card. Returns: synchronized view of the specified map.
source share