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

Tree Map working according to the Ascending order.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we restart a dead thread in java?

643


Why do I need to declare the type of a variable in java?

673


What is meant by bytecode?

662


What's the base class in java from which all classes are derived?

850


Which is better stringbuilder or stringbuffer?

604






How to perform bubble sort in java?

690


What is connection class in java?

594


Which programming language is most secure?

632


Can a singleton class be inherited?

616


What is meant by class loader? How many types are there? When will we use them?

603


What is passed by reference and pass by value ?

653


What is the purpose of return statement?

712


Do loops java?

639


What is an example of character?

663


What is an i/o filter?

774