1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update Java集合框架常见面试题.md

This commit is contained in:
SnailClimb 2019-06-05 09:30:33 +08:00 committed by GitHub
parent 52fb6792b9
commit de1beb701f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,11 +83,11 @@ ArrayList 实现了 RandomAccess 接口, 而 LinkedList 没有实现。为什
**双向链表:** 包含两个指针一个prev指向前一个节点一个next指向后一个节点。
![双向链表](https://ws1.sinaimg.cn/large/006rNwoDgy1g2dp8qi5xij30fk06idgj.jpg)
![双向链表](https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-6/双向链表.png)
**双向循环链表:** 最后一个节点的 next 指向head而 head 的prev指向最后一个节点构成一个环。
![双向循环链表](https://ws1.sinaimg.cn/large/006rNwoDgy1g2dp8a1hxej30eu06zgmd.jpg)
![双向循环链表](https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-6/双向循环链表.png)
## ArrayList 与 Vector 区别呢?为什么要用Arraylist取代Vector呢