1, List,set,map are inherited from the collection interface,-----java.util
2, List features: elements are placed in order, elements can be repeated, set features: elements are not placed in order, elements are not repeatable (note: Although the element is not placed in the order, but the element in the set position is the hashcode of the element is determined, its position is actually fixed)
3, the list interface has three implementation classes: Linkedlist,arraylist,vector, the set interface has two implementation classes: HashSet (the bottom layer is implemented by HashMap), Linkedhashset
Collection
/ \
/ \
/ \
Set List (in order, can be repeated)
/ \ \
/ | \
/HashSet \
/(no repetition, no specific order)/\
/ / \
SortedSet (with order) linklist ArrayList
/
/
TreeSet (no repetition, same order, type)
MAP--->hashmap
MAP--->treemap
MAP--->sortedmap
The difference between list and set,map in Java