ArrayList

1:继承了AbstractList<E>类,实现 List<E>接口,实现 RandomAccess接口,实现Cloneable接口,实现Serializable 接口,
2:AbstractList<E>继承AbstractCollection<E>类,实现 List<E>接口.
3:AbstractCollection<E>实现Collection<E>接口
4:Collection<E>继承Iterable<E>接口
5:List<E>继承了 ListIteable<E>接口
总结:
1:可以迭代器访问
2:可以随机访问
3:可以序列化
4:可以克隆
5:可以双向迭代访问
6:以数组方式存储
7:非线程安全
8:快速失败
迭代器移除元素不会报并发修改异常是由于有如下语句
expectedModCount = modCount;
迭代器实现原理是用以下三个变量实现
expectedModCount;
cursor;
lastRet; ->last returned by next or previous ,and reset to -1 by call remove method.
 
原文地址:https://www.cnblogs.com/hhbk/p/7546008.html