Difference between HashTable and HashMap ?

HashTable is reengineered and now it implements Map interface.It takes same pair as Map but having these dieerences,
-HashTable is synchronized but HashMap ia not.
-HashTable can not take null values but HashMap can take.

No comments:

Post a Comment