Can any one say how will sort map objects in java?

Answer Posted / guest

In map we have TreeMap ,which sort objects as natural
order.and don't allow duplicate keys and null values

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is static variable stored in heap?

505


What is meant by interface?

561


What is a generic type?

558


What is the default size of arraylist in java?

500


how to convert Java project into Maven ?

583






Explain the key functions of data binding?

579


Explain about the select method with an example?

591


Difference between concurrent hashmap and hashtable and collections

561


Why array is used in java?

511


Is Java a dying language?

569


When is update method called?

668


State the significance of public, private, protected class?

649


Why javac is not recognized?

517


Can you extend main method in java?

616


I don’t want my class to be inherited by any other class. What should I do?

573