- entrySet() - returns a set of all the key/value mapping of the map
- keySet() - returns a set of all the keys of the map
- values() - returns a set of all the values of the map
Output
Using get() and getOrDefault().
- get() - Returns the value associated with the specified key. Returns null if the key is not found.
- getOrDefault() - Returns the value associated with the specified key. Returns the specified default value if the key is not found.
Output