7 differences between HashMap and HashTable
HashMap vs HashTable
1. HashMap is non-synchronized. HashTable is synchronized.
2. HashMap is not thread safe. HashTable is thread safe.
3. HashMap allows one null key and any number of null values while HashTable do not allow null keys and null values in HashTable Object.
4. HashMap object values are iterated using iterator. HashTable is only class other than vector which uses enumerator to…
View On WordPress












