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 are the supported platforms by java programming language?

808


Can you instantiate the math class in Java?

807


Explain the advantages of packages in java?

707


what is nested class in java?

818


What is the indent key?

793


Is java a digit method?

748


What are the legal operands of the instanceof operator?

785


Explain the importance of import keyword in java?

772


How does compareto method work?

725


How many bits is a string?

745


What java ide should I use?

761


What is thread pool in java with example?

739


What are the steps in the jdbc connection?

766


How do you print array in java?

739


What is the size of integer?

829