Java Collections Note

1. ArrayList/LinkedList are not thread-safe

Need Synchronization in multi-threading environment.

List list = Collections.synchronizedList(new ArrayList<>())

你可能感兴趣的:(Java Collections Note)