Thursday, September 13, 2012

Difference between HashMap and Hashtable

The iterator in the Hash Map is fail-safe (If you change the map while iterating, you’ll know). The enumerator for the Hash table is not fail-safe.Hash Map is unsynchronized.Hash table is synchronized.



No comments: