Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
How to use Comparator and Comparable in Java With exam
Comparators and comparable in Java are two of fundamental interface of Java API which is very important to understand to implement sorting in Java.http://javarevisited.blogspot.com/2011/06/comparator-and-comparable-in-java.html
Total Hits: 3378
Total Votes: 27 votes
Average Rating: 2.78 out of 5
Category: JAVA/Core JAVA
Description:
What is Difference between Comparator and Comparable in Java question was asked in a Test paper for one of big Investment bank first round of interview. It was not that straight forward but it was related to how you will sort Employee object based on his EmployeeID and his name and that involves the use of both Comparable and Comparator in Java. Comparators and comparable in Java are two of fundamental interface of Java API which is very important to understand to implement sorting in Java.Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 14.81% |
4 |
![]() ![]() |
![]() ![]() 14.81% |
4 |
![]() ![]() ![]() |
![]() ![]() 14.81% |
4 |
![]() ![]() ![]() ![]() |
![]() ![]() 14.81% |
4 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 25.93% |
7 |




14.81%

14.81%

14.81%

14.81%

25.93%