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

how to use finalize()Method to resources

4 Answers   TCS,


Functionality of JVM?

7 Answers   Infosys,


What is the meaning of find and replace?

1 Answers  


How do you identify if jvm is 32-bit or 64-bit from java program?

1 Answers  


What does += mean in java?

1 Answers  


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

1 Answers  


How many bits are allocated to represent character of character sets - Unicode, ASCII, UTF-16, UTF-8?

1 Answers  


What is the difference between stored procedure & function?

1 Answers  


Is java a utf 8 string?

1 Answers  


what are different ways in which a thread can enter the waiting state? : Java thread

1 Answers  


How we get some middle records in one table?

2 Answers   3i Infotech,


Define jre i.e. Java runtime environment?

1 Answers  


Categories