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

What will be the output of round(3.7) and ceil(3.7)?

669


Explain java coding standards for constants?

569


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

754


Explain when noclassdeffounderror will be raised ?

611


Which class cannot be a subclass in java?

536






What is difference between core java and java ee?

462


What is singleton class in java and how can we make a class singleton?

562


Which non-unicode letter characters may be used as the first character of an identifier?

589


Which collection does not allow duplicates in java?

460


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

829


Discuss about garbage collector in Java.

636


Which access specifier can be used with class ?

528


How do you declare an empty string?

611


Is it possible for yielded thread to get chance for its execution again ?

545


What access modifiers can be used for methods?

553