Java集合的根接口是Collection,它又继承了迭代接口Iterable
List接口和Set接口继承了Collection接口
Map接口是独立的接口,并没有继承Collection接口
List接口常用的实现类有:ArrayList、LinkedList、Vector
Set接口常用的实现类有:HashSet、LinkedHashSet、TreeSet
Map接口常用的实现类有:HashMap、HashTable、TreeMap
Java容器可分为两大类:
Collection
List
ArrayList
LinkedList
Vector(了解,已过时)
Set
HashSet
LinkedHashSet
TreeSet
Map
HashMap
LinkedHashMap
TreeMap
ConcurrentHashMap
Hashtable(了解,,已过时)
上一篇:PHP怎么交换两个变量的值
下一篇:Java8流是什么呢