MY mENU


Friday 10 February 2012

Map Vs HashTable


Map is an Interfce, and a HashTable is an concrete implemented Class of Map interface.

Map provides Collection views instead of direct support for iteration via Enumeration objects. But HashTable can.

Map allows you to iterate elements, over keys, values, or key-value pairsHashtable does not provide the key-value pairs.

Map provides a safe way to remove entries in the midst of iteration, but Hashtable did not.

No comments:

Post a Comment