TreeMap

TreeMap

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

Post Your Answers


User Email:

User Name:
Answers:

Related scjp1.5 chap8 Links

scjp1.5 chap8 interview questions and answers for experienced and fresher