top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Java: How can we create a synchronized collection from given collection?

+5 votes
344 views
Java: How can we create a synchronized collection from given collection?
posted Aug 19, 2015 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

We can use following code to get a synchronized collection by the specified collection.

 Collections.synchronizedCollection(Collection givenCollectionName);
answer Mar 14, 2016 by Shivam Kumar Pandey
...