a). Hashtable
ht = new Hashtable();
Here, to store String objects as keys and integer objects as its values, we create the Hashtable object as shown above. We did not mention any capacity for the Hashtable. Hence, the default capacity of this HashMap will be taken as 11 and the load factor as 0.75. Load factor represents at what level this HashMap capacity should be doubled.
For example: capacity * load factor = 11 * 0.75 = 8.25.
This represents that after storing the 8th key-value pair into the HashMap, its capacity will become 22.
b). Hashtable ht = new Hashtable(60);
The preceding statement creates a Hashtable object (ht) which can be used to store String type keys and Integer type values. The initial capacity of Hashtable object (ht) is declared as 60.
c). Hashtable ht = new Hashtable(80, 0.5);
The preceding statement creates a Hashtable object (ht) which can be used to store String type keys and Integer type values. The initial capacity of Hashtable object (ht) is declared as 60 and the load factor as 0.5.