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 / venkatesh

call static method from Collections class
below is method:
static Map synchroizedMap(MaP Object)

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between class#getinstance() and new operator ?

901


What is stream api in java8?

796


How to remove the trailing spaces from a string?

916


What are wrapper classes in java?

817


What is the formula to calculate percentage?

772


What does singleton class mean?

738


What is scope & storage allocation of static, local and register variables? Explain with an example.

819


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

793


What are implicit objects in java?

762


What is == mean?

764


What is difference between this and super keyword?

777


What are the main concepts of oops in java?

1148


Why main method is static in java?

853


What is mean by exception?

765


Explain all java features with real time examples

1456