HashMap load factor ?
Hi,
HashMap has an constructor to define the load factor.......
HashMap(int initialCapacity)
{
}
//Constructs an empty HashMap with the specified initial capacity and thedefault load factor (0.75).
Initial capasity is the size of hashmap..
what it means the defalt load factor..?
- jaban
[346 byte] By [
gw@balaa] at [2007-10-1 0:43:08]

The following is general and not really specific to the Java implementation of HashMap:
Due to the nature of hashing, the maximum capacity of the structure is important in determine where new entries are "put". Also, the load factor (how full) is important in the performance of the structure (adding new entries, etc.).
When the structure reaches the load factor, the structure needs to be recreated and then all the entries rehashed to their appropriate location; therefore, both the load factor and starting capacity are important.