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

What is sorting in java?

627


Can we assign the reference to this variable?

633


What is the difference between hashmap and hashtable? What is an interface?

632


What is printwriter in java?

616


What is the use of bufferedreader?

639






What are generic methods?

623


What are the states of thread in java?

615


What is the difference between equals() and == in java?

600


What is the covariant return type?

676


Can we overload final method in java?

638


What is string english?

644


What is a website container?

590


what is mena by object block any what is the use of that

1872


What's the access scope of protected access specifier?

646


What is file in java?

661