rehash()%uA0方法是用来增加容量和内部对其进行重组这个哈希表。这样做是为了容纳并更有效地访问其条目。当在哈希表中的键的数量超过这个哈希表的容量此方法被自动调用。
声明
以下是java.util.Hashtable.rehash()方法的声明。
protected void rehash()
参数
-
NA
返回值
NA
异常
-
NA
例子
NA
This is a protected method and called automatically when the number of keys in the hashtable exceeds this hashtable&aposs capacity.So the stand alone application can not be used to test the method.
现在编译和运行上面的代码示例,将产生以下结果。
NA