Tree map is basically a sorted map.We know that sorted by the natural order of the elements.
But like TreeSet, TreeMap lets we pass our own comparison rules in when we construct a TreeMap, to specify how the elements should be compared to one another when they are being ordered.
By:umang
Date:2014-03-09 00:00:00
Overriding hashCode() and equals()
What It Means if we Don\'t Override equals()
Implementing an equals() Method
So What Do we Do with a Collection?
Key Interfaces and Classes of the Collections Framework
Overview of Memory Management and Garbage Collection
Overview of Java\'s Garbage Collector
When Does the Garbage Collector Run?
How Does the Garbage Collector Work?
Reassigning a Reference Variable