TreeMap maintains ascending order and does not allows null as Key which differs in HashMap and LinkedHashMap.
About TreeMap:
About TreeMap:
- It extends AbstractMap class and Implements NavigableMap Interface
- It maintain ascending order
- It does not allow null as Key