Which is the default load factor of HashMap?

  1. 0.5
  2. 0.65
  3. 0.75
  4. 1.0
Correct answer 0.75

Explanation

HashMap has a default load factor of 0.75 to balance time and space tradeoffs.

Update: Admin added a tag on this question

Topics

By Admin · · 24 views