A map holds values based on the key, i.e., a key and value pair. Each key-value pair is refer to as an entry. A Map has distinct keys. A Map is handy when searching, updating, or deleting objects based on a key.