Explain about Map and its types.
Answer: Map cares about the unique identifier. We can map a unique key to a specific value. It is a key/value pair. We can search a value, based on the key. Like the set, the map also uses the “equals ( )” method to determine whether two keys are the same or different.
Map is of following types:
- Hash Map
- Hash Table
- Linked Hash Map
- TreeMap