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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null an object in java?

770


What is style and indentation?

748


What does provide mean construction?

794


How to sort an array from smallest to largest java?

769


Where are local variables stored?

713


Can we override private methods?

754


What invokes a thread's run() method in java programming?

792


Explain about the dynamic behavior of core java?

856


What is the difference between actual and formal parameters?

696


What are synchronized blocks in java?

786


How many bits is a string in java?

772


What is callablestatement? How you can call stored procedure to pass in parameter?

754


Give us a program to check for parenthesis matching using stack.

740


What is a generic type?

752


What is map and hashmap in java?

810