These three methods are straightforward:
- size(): It returns count of key-value pairs (entries) in the map
- isEmpty(): It returns true if there is nokey-value pairs (entries) in the map (size() returns 0)
- clear(): It removes allkey-value pairs (entries) from the map, so that isEmpty() returns true and size() returns 0