Difference between HashMap and HashTable?

Difference between HashMap and HashTable ?


Difference between the HashMap and HashTable-


Methods are not synchronised. Not thread safety . Iterator is used to iterate the values. Allows one null key and multiple null values . Performance is high than HashTable .

HashTable- Key methods are synchronised . Thread safety . Enumerator is used to iterate the values . Doesn’t allow anything that is null . Performance is slow .