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

Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

0 Answers  


State differences between C and Java?

0 Answers   Deloitte, JPMorgan Chase,


Do we have pointers in java?

0 Answers  


How can we make copy of a java object?

0 Answers  


What is the purpose of final keyword and when to use it?

0 Answers  






What is meant by the value of a variable?

0 Answers  


What is super in java?

0 Answers  


What is meant by object oriented programming – oop?

0 Answers  


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

0 Answers   Bravura Solutions,


what is java

10 Answers  


What about static nested classes in java?

0 Answers  


Explain about fail fast iterators in java?

0 Answers  


Categories