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
Explain when we should make an instance variable private.
What is definition and declaration?
What is finally and finalize in java?
What is Hierarchy of exception?
What is the use of conditional statement?
Can extern variables be initialized?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
What is a nested class?
Which is better stringbuffer or stringbuilder?
What is the size of int?
Explain the selection sort algorithm and state its time complexity?
Can we override the private methods?
Explain the difference between jdk, jre, and jvm?
Write a program to show whether a graph is a tree or not using adjacency matrix.
Why main method is called first in java?