What is Map and SortedMap Interface?A map is an object that maps the keys to values. Map provides the facility of storing elements without duplicate keys. The Map interface does not provide the sorted order of key and value pairs.
The SortedMap interface provides a specific Map interface which provides the facilities of maintaining the elements in sorted order. The sorting is done on the keys..
|