How is Comparator different from Comparable?
Comparator is implemented in the same class as the object being compared
Comparable provides multiple sorting sequences
Comparator allows sorting objects without modifying their class
Comparable is a class, whereas Comparator is an interface
This question is part of this quiz :
Java Interface types and Comparator