What are the initial capacity and load factor of HashSet?
(a) 10, 1.0
(b) 32, 0.75
(c) 16, 0.75
(d) 32, 1.0
(a) 10, 1.0
(b) 32, 0.75
(c) 16, 0.75
(d) 32, 1.0
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right answer is (c) 16, 0.75
For explanation I would say: We should not set the initial capacity too high and load factor too low if iteration performance is needed.