Synchronized Collections In Java
Synchronized Collections is nothing but a thread safe collections, to convert normal collection classes to a Synchronized Collections we have a method named as synchronizedCollection(Collection c) under the Collections class in Java
When we invoke the synchronizedCollection(Collection c) method by passing any Collection class Object, we get a synchronized collections. In synchronized collections all methods are thread safe or synchronized
synchronizedCollection(Collection c) Method returns a new Class object named as SynchronizedCollection , all the methods of SynchronizedCollection class are thread safe.
Synchronized Collections Java Example
<-PREV
NEXT->