Sir, We know that both HashMap & Hashtable is using for same purposes i.e Used for storing keys-values pair. But there is some difference between this two class that are 1)Hashtable is synchronized but HashMap not. 2)Hashtable doesn't contain null but HashMap can. My question is why Hashtable does not contain null? Give me some sufficient points so i can understand properly.
Because hashtable is synchronized.