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

Why main method is static in java?

0 Answers  


What are data types in oop?

0 Answers  


What is the final keyword in java?

0 Answers  


What is an interoperable application in java ?

0 Answers   HCL,


Explain about member inner classes?

0 Answers  






What do you understand by an io stream?

0 Answers  


Why java is platform independent? Explain.

0 Answers  


How variables are declared?

0 Answers  


What is bufferedwriter?

0 Answers  


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

0 Answers  


What is a variable declaration?

0 Answers  


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

0 Answers  


Categories