Home » JAVA Programming » Data Structures » Question
  1. What are the initial capacity and load factor of HashSet?
    1. 32, 1.0
    2. 16, 0.75
    3. 32, 0.75
    4. 10, 1.0
    5. None of these
Correct Option: B

We should not set the initial capacity too high and load factor too low if iteration performance is needed.



Your comments will be displayed only after manual approval.