Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Explain how to sort the elements in HashMap - Java
Java and Advanced Java
>>
Java - Part 4
Next Page »
Explain how to sort the elements in HashMap
The elements of HashMap can be sorted by using the static method Collections.sort().
For example:
Collections.sort(hashMapObject); // hashMapObject is an instance of HashMap.
Next Page »
Difference between Checked and Unchecked exception
A checked exception throws a block of code and represented by the throws keyword...
Why Runnable interface is preferable than extending the Thread class - Java
Runnable interface is always preferred because, the class implementing it can implement as many interfaces as a developer can, and also extend another class...
Difference between a java object reference and c++ pointer
The prime difference is that pointers are to locate the address of the primitive variables only...
Post your comment
Related Content
Java - Part 1
Java - Part 2
Java - Part 3
Java - Part 4
Java - Part 5
Java - Part 6
Java - Part 7
Java for freshers
Basic Java
Advanced Java
Java FAQ
JSP - Part 1
JSP - Part 2
EJB - Part 1
EJB Architecture
EJB - Part 2
J2EE - Part 1
J2EE - Part 2
Servlets - Part 1
Servlets - Part 2
Struts - Part 1
Struts - Part 2
Struts and Ajax
Hibernate - Part 1
Hibernate - Part 2
Spring - Part 1
Spring - Part 2
Java Server Faces
Java Web Services
Follow us
CareerRide on YOUTUBE
CareerRide on INSTAGRAM
MCQs
English
Tutorials
Download
▲