| What do you understand by loadfactor in HashMap in Java?
First we will say something about the HashMap then will go to loadfactor in HashMap. HashMap in Java has default initial capacity and it is 16 and load factor here is 0.75 which means it is 12 out of 16. And Load factor of HashMap is level at which capcity should be doubled. To understand this we will take a example HashMap of capacity 16 and loadfactor is 0.75 so once 12th key value is used it will increase capacity to 32. | | |