The classes in which the thread security is set are: Vector,stack,hashtable,enumeration, except for the classes and interfaces that are non-threading-safe
Collection is a collection of objects, and Collection has two sub-interfaces List and set,
List can be obtained by subscript (".") to get the value, the value can be repeated, and the Set can only be used by the cursor to take the value, and the value is not repeatable
ArrayList, Vector, LinkedList is the implementation class for List
ArrayList is thread insecure, Vector is thread-safe, and these two classes are implemented by arrays
LinkedList is thread insecure, and the underlying is implemented by a linked list
Map is a set of key-value pairs
HashTable and HASHMAP are the implementation classes of MAP
HashTable is thread-safe and cannot store null values
HASHMAP is not thread-safe and can store null values
Classes that assemble thread-safe