Thread: what is hashmap
View Single Post
  #3 (permalink)  
Old 07-28-2007, 07:06 PM
sridhar.mudiganti sridhar.mudiganti is offline
Member
 
Join Date: Jul 2007
Posts: 2
sridhar.mudiganti is on a distinguished road
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.
Reply With Quote