先看代码:
以下代码及注释来自java.util.HashTable // 哈希表默认初始大小为11 public Hashtable() { this(11, 0.75f); } protected void rehash() { int oldCapacity = table.length; Entry[] oldMap = table; // 每次扩容为原来的2n+1 int newCapacity = (oldCapacity