JDK1.7的HashMap源码分析

HashMap介绍  jdk1.7的HashMap是基于数组+链表  jdk1.8的HashMap是基于数组+链表+红黑树 1.7HashMap存储结构 static final Entry<?,?>[] EMPTY_TABLE = {}; // HashMap底层使用Entry数组做为存储, 默认为: {} transient Entry<K,V>[] table = (Entry<K,V>[
相关文章
相关标签/搜索