WHAT IS THE DEFAULT SIZE OF LOAD FACTOR IN HASHING BASED COLLECTION?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 668  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the default size of load factor in hashing based collection?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!