We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb0ea6 commit fbc0a69Copy full SHA for fbc0a69
2 files changed
MD/HashMap.md
@@ -0,0 +1,11 @@
1
+# HashMap 底层分析
2
+
3
+
4
5
+如图所示,HashMap 底层是基于数据和链表实现的。其中有两个重要的参数:
6
7
+- 容量
8
+- 负载因子
9
10
+容量的默认大小是 16,负载因子是 0.75,当 `HashMap` 的 `size > 16*0.75` 时就会发生扩容(容量和负载因子都可以自由调整)。
11
README.md
@@ -3,6 +3,7 @@
### Java 集合
- [ArrayList/Vector 底层分析](https://github.com/crossoverJie/Java-Interview/blob/master/MD/ArrayList.md)
- [LinkedList 底层分析](https://github.com/crossoverJie/Java-Interview/blob/master/MD/LinkedList.md)
+- HashMap 底层分析
### Java 多线程
- [多线程中的常见问题](https://github.com/crossoverJie/Java-Interview/blob/master/MD/Thread-common-problem.md)
0 commit comments