Properties void rehash() method Example Program


Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently. This method is called automatically when the number of keys in the hashtable exceeds this hashtable's capacity and load factor.

Program

This is a protected method and called automatically when the number of keys in the hashtable exceeds this hashtable's capacity.So the stand alone application can not be used to test the method.

Explanation

protected void rehash()
Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently. This method is called automatically when the number of keys in the hashtable exceeds this hashtable's capacity and load factor.


Related Post

Comments


©candidjava.com