Is it possible to use the standard Collections classes (as opposed to the simultaneous ones) if I guarantee that the code does not modify the data in multiple threads. The code I'm talking about is completely under my control, and I don't mutate it after the initial (single-threaded) phase of the population.
I know that some classes, such as DateFormat, are not thread safe because they store intermediate states as they are used. Are collections (ArrayList, Tree Map, etc.) safe though?
source
share