Wednesday, 18 November 2015

How can Arraylist be synchronized without using Vector

Arraylist can be synchronized using:Collections.synchronizedList(List list)

Collection,Set and Map also can be synchronized in the following way:

Collections.synchronizedSet(set);
Collections.synchronizedMap(Map map)
Collections.synchronizedCollection(Collection c)

No comments:

Post a Comment