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

Answers were Sorted based on User's Feedback



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

Answer / srikanth

using tree map ie it will sort by key

Is This Answer Correct ?    20 Yes 0 No

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

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

More Core Java Interview Questions

What is object english?

0 Answers  


what is deadlock in threads? with example

2 Answers   CTS, XOXO,


What restrictions are placed on method overloading and method overriding?

5 Answers  


What are the uses of synchronized keyword?

0 Answers  


Difference between operator overloading and function overloading

0 Answers   Tavant Technologies, Virtusa,


can any one tell me when do u go for inheritance and polymorphism

3 Answers  


Does constructor creates the object ?

0 Answers  


Features of Java?

4 Answers  


What is the purpose of default constructor?

0 Answers  


What is string array?

0 Answers  


What is dynamic binding(late binding)?

0 Answers  


Differences between GridLayout and GridBagLayout?

1 Answers  


Categories