September 2019
Intermediate to advanced
816 pages
18h 47m
English
Besides concurrent collections, we also have synchronized collections. Java provides a suite of wrappers that expose a collection as a thread-safe collection. These wrappers are available in Collections. The most common ones are as follows:
List<Integer> syncList = Collections.synchronizedList(new ArrayList<>());
Map<Integer, Integer> syncMap = Collections.synchronizedMap(new HashMap<>()); ...