mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-20 22:17:09 +08:00
Update Java集合框架常见面试题.md
This commit is contained in:
parent
4656fd97f0
commit
4189bbe647
@ -313,7 +313,7 @@ Output:
|
|||||||
|
|
||||||
`LinkedHashSet` 是 `HashSet` 的子类,能够按照添加的顺序遍历;
|
`LinkedHashSet` 是 `HashSet` 的子类,能够按照添加的顺序遍历;
|
||||||
|
|
||||||
`TreeSet` 底层使用红黑树,能够按照添加元素的顺序进行遍历,排序的方式有自然排序和定制排序。
|
`TreeSet` 底层使用红黑树,元素是有序的,排序的方式有自然排序和定制排序。
|
||||||
|
|
||||||
## 1.4 Collection 子接口之 Queue
|
## 1.4 Collection 子接口之 Queue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user