Computer Science, asked by Srashti3890, 1 year ago

After adding 16 elements in hashset what will hashset capacity

Answers

Answered by harshbaweja32
0
The initial capacity of HashSet is 16. When the load factor (0.75) is reached, i.e. 16 * 0.75 = 12; on the insertion of the 12th element the capacity is doubled, i.e. it becomes 32.
Similar questions