top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+5 votes
51 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 Google+ Share Button LinkedIn Share Button Multiple Social 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...