LearnFrenzy
Sign in Take a free test

HashMap and TreeMap · HashMap and TreeMap MCQ · Question 7

The default load factor Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 7 Back to Exercise

What are HashMap's default initial capacity and load factor?

  • A 10 and 0.5
  • B 16 and 0.75 Correct
  • C 8 and 1.0
  • D 32 and 0.75
Correct Answer: Option B

The 13th entry triggers the first resize to 32 buckets.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links