How TreeMap sorts the objects inside it?? suppose if have
include one employee object and one car object. On what
basis it will sort?
Answer Posted / anuj
then u have to tell the trremap that on what basis elment
shoyuld be sorted all elemtns of trremap should be of type
comparable & in side comparable compare to u need to put
uor sorting logic.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Which package has light weight components?
Can a main method be overloaded?
Is arraylist zero based?
What is a function in java?
What are the 8 data types in java?
Why can't you declare a class as protected?
What is numeric function?
How can I debug the Java security exceptions and AccessControlExceptions?
What is a literal coding?
What does flagged out mean?
What is super in java?
Difference between collection, collection and collections in java?
Why java is a platform independent? Explain
What is java thread dump, how can we get java thread dump of a program?
Tell us something about different types of casting?