Can any one say how will sort map objects in java?
Answers were Sorted based on User's Feedback
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 |
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?
What is a values collection view ?
Explain about main thread in java?
What are the skills required for core java?
How do you create a first line indent?
What is method overloading in java ?
What is the difference between char and char *?
How do you implement singleton class?
What is the difference between class & object?
what is language and it responsibilities
What is parameter example?
What is a super class and how super class be called?