From three points to analyze the difference between them:
1. Inherited interfaces are different:
The List,set interface is inherited from the collection interface, and the map interface is not, it is a top-level interface.
2. Own characteristics:
List: Used to process a sequence. The elements that are placed are ordered and can be duplicated.
Set: Used to process a collection. The elements that are placed are unordered and cannot be duplicated.
MAP: Used to handle key-value pairs. The key value cannot be duplicated, and if repeated, it is overwritten and placed in an unordered order.
3. Implementation class:
List: There are three implementation classes, ArrayList Vector LinkedList
Set: There are three implementation classes, HashSet TreeSet linkedhashset
Map: There are three implementation classes, HashMap HashTable Linkedhashmap
The difference between List,map,set interfaces in Java