October 26, 2010 at 11:01 AM
Here is the answer.
- The hashMap and Hashtable are differ from each other according to following points-
- HashMap allows null values for key and value whereas
Hashtable doesnt allow.
- HashMap does not guarantee that the order of the map will
remain constant over time.
- HashMap is non synchronized where as Hashtable is synchronized.
- HashTable is an Old java class but Hashmap is a new java
class in java 2.
- In HashTable you can change the iteration but in the case
of HashMap you can change the iteration but you will get a