why initial capacity of hashmap is 16?
This code block defines the default size of an array as 16 (always a power of 2) and the load factor as 0.75, so that the HashMap's capacity will double in size by recomputing the hashcodes of the existing data structure elements any time the HashMap reaches 75% (in this case 12) of its current size (16).