+1 vote
in JAVA by

Difference between HashMap and HashTable.

Difference between HashMap and HashTable can be seen below:

HashMapHashTable
Methods are not synchronizedKey methods are synchronized
Not thread safetyThread safety
Iterator is used to iterate the valuesEnumerator is used to iterate the values
Allows one null key and multiple null valuesDoesn’t allow anything that is null
Performance is high than HashTablePerformance is slow

Related questions

+1 vote
asked May 24, 2019 in JAVA by rajeshsharma
+1 vote
asked May 24, 2019 in JAVA by rajeshsharma
...