🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: How Hashing Works: all 13 questions

Quiz: How Hashing Works · Question 4 of 13

Java's HashMap resizes when the load factor passes:

Java's HashMap resizes when the load factor passes:

  1. A.0.25
  2. B.0.5
  3. C.0.75
  4. D.1.5
Answer & explanation

Correct answer: 0.75

The default load factor is 0.75; then the bucket array doubles and keys are rehashed.

Can you get the rest right without peeking?

Take the timed Quiz: How Hashing Works quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →