java Keeping ArrayLists safe across threads in Java When working on bigger projects, and optimizing for performance and scale, we inevitably have to deal with threads. It is important to know how to write code that works across multiple threads.