Home > DeveloperSection > Interviews > What is the default size of load factor in hashing based collection?

Posted on    May-14-2015 11:26 PM

 Java Java  Collection 
Ratings:
 1 Answer(s)
  400  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-14-2015 11:26 PM

The default size of load factor is 0.75. The default capacity is computed as initial capacity * load factor. For example, 16 * 0.75 = 12. So, 12 is the default capacity of Map

Don't want to miss updates? Please click the below button!

Follow MindStick