|
hash map is storing the values in the form of key,value pair.and it was not synchronized(means it can act upon many threads).intial capacity of hasmap is 16.and load factor is 0.75.
intial capacity*loadfactor=16*0.75=12
that means after storing the 12 th key vale pair hash map size is doubled.
and it allows duplicate values.
Hash map h=new Hashmap();
(123,"ajay") 1st one is key and followed by value.
|