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 / naveen.bav

Hello Venkatesh, I am not asking for synchronization. I am
asking how TreeMap will sort the values inside it.Thanks
for the reply

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define an enumeration?

805


Is there a way to increase the size of an array after its declaration?

805


I want to re-reach and use an object once it has been garbage collected. How it's possible?

768


What is jvm? Why is java called the platform independent programming language?

767


What is hashmap and map?

740


What is method overloading in java ?

753


Give any two differences between C++ and java.

801


What is string intern in java?

771


What best practices should you follow while writing multithreaded code in java?

772


Can a class have multiple subclasses?

801


What is the purpose of a parameter?

785


What is an example of character?

790


How can I become a good programmer?

690


What does this () mean in java?

750


How to check if linked list contains loop in java?

652