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 pairs. Hashtable does not provide the key-value pairs.
- Map provides a safe way to remove entries in the midst of iteration, but Hashtable did not.
- 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 pairs. Hashtable 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