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

Answer Posted / srikanth

using tree map ie it will sort by key

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does singleton class mean?

540


What is meant by distributed application? Why are we using that in our application?

555


How to find the index of the largest number in an arraylist java?

522


Describe different states of a thread.

580


What are the main uses of this keyword?

603






Explain about the performance aspects of core java?

558


Can a class have multiple superclasses?

572


What does a za z0 9 mean?

564


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2138


What is the purpose of return statement?

631


Can we declare a class as static?

598


What is the difference between a choice and a list?

608


Can array grow dynamically in java?

528


What are heap memory and stack memory and what are memory tables.

515


What is keyword and identifier?

644