java集合(二)

Collection接口下面有三个子接口:List,Set,Queue。

LinkedList实现了List和Queue接口。

LinkedList也可以当做一个队列来使用。

ArrayList接口没有实现Queue接口。

Collection本身就是继承自Iterator接口的。

双端队列Deque继承自Queue。

LinkedList实现了Deque,而Dequq实现了Queue接口,所以LinkedList实现了Queue接口。

ArrayList,LinkedList,Hashset都是线程不安全的。

Collections是集合的工具类。

迭代器在遍历元素的时候,不允许通过集合的方法操作元素的。

 

posted @ 2018-09-10 17:50  寒潭渡鹤影  阅读(83)  评论(0编辑  收藏  举报