java - How a hash map load factor is determined during initialisation? -


when hash map initialised, 16 slots created. them empty in beginning. load factor ratio of number of elements occupied size of hash map. default or initial load factor must 0 right? while referring java book deitel , deitel says default load factor 0.75. how possible?

from javadoc

the load factor measure of how full hash table allowed before capacity automatically increased.

it's threshold.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -