How to sort the elements in HashMap
Answer Posted / srinivasa
By implementing comparable interface we can sort the
HashMap
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
If you are given the name of the function at run time how will you invoke the function?
How can you read content from file in java?
How do you identify if jvm is 32-bit or 64-bit from java program?
How do you use compareto in java?
Why is singleton not thread safe?
Can we have any other return type than void for main method?
What is the difference between int and integer in java?
Explain what do you mean by functional overloading in java?
How many bytes is a unicode character?
what methods would you overwrite in java.lang.object class?
What is the symbol for average?
How to sort an unsorted array in java?
What is meant by class loader? How many types are there?
What is the similarity between dynamic binding and linking?
Can a hashset contain duplicates java?