We can use following code to get a synchronized collection by the specified collection.
Collections.synchronizedCollection(Collection givenCollectionName);