What does it mean when we say an ArrayList is not synchronized?
问题 What does it mean when we say an ArrayList is not synchronized? Does it mean that if we declare an ArrayList in object scope, multiple threads accessing the objects have the opportunity to modify the list? 回答1: What does it mean when we say an ArrayList is not synchronized? It means that accessing an ArrayList instance from multiple threads may not be safe (read, "may result in unexpected behavior" or "may not work as advertised"). Further reading: Synchronization and thread safety in Java