在java中我们经常会用到集合,这里一下集合关系。
先总体说一下关系:
1.List, Set, Map都是接口,List,Set都实现了Collection接口,Map为独立接口
2.Set下有HashSet,LinkedHashSet,TreeSet
3.List下有ArrayList,Vector,LinkedList
4.Map下有Hashtable,LinkedHashMap(有序),HashMap,TreeMap
具体关系:
在java中我们经常会用到集合,这里一下集合关系。
先总体说一下关系:
1.List, Set, Map都是接口,List,Set都实现了Collection接口,Map为独立接口
2.Set下有HashSet,LinkedHashSet,TreeSet
3.List下有ArrayList,Vector,LinkedList
4.Map下有Hashtable,LinkedHashMap(有序),HashMap,TreeMap
具体关系: