Math, asked by akashdeep76751, 1 year ago

If the size of hashmap increase how it will effect existing values

Answers

Answered by mzlenecl74
0

Answer: initial capacity of hashmap * Load factor of hashmap = 16 * 0.75 = 12. This represents that uptil 12th key-value pair hashmap will keep its size to 16 and as soon as 13th item(key-value pair) will come into the Hashmap, it will increase its size from default 2^4 = 16 buckets to 2^5 = 32 buckets.


Step-by-step explanation:


Similar questions