一.前言 本文由jdk1.8源码整理而得,附自制jdk1.8底层数据结构图,并截取部分源码加以说明结构关系. 二.jdk1.8 HashMap底层数据结构图 三.源码 1.散列表(Hash table,也叫哈希表): /** * The table, initialized on first use, and resized as * necessary. When allocated, length is always a power of two. * (We also tolerate l…