图来自https://blog.csdn.net/biexiaofei/article/details/77031003
常问的:
- LinkedList继承自AbstractSequentiaList抽象类,并不是继承的AbstractList
- ArrayList继承自AbstractList抽象类
- Stack继承自Vector
- HashSet与TreeSet继承自AbstractSet,另外TreeSet实现了Sorted接口
- 而Sorted接口继承set接口
- HashMap继承了AbstractMap抽象类,而它的子类有LinkedHashMap(添加了保证顺序的功能)
- HashMap、WeakHashMap、HashTable、TreeMap、IdentityHashMap都继承了AbstractMap抽象类,而TreeMap又实现了SortedMap接口