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!