Hi
Class should implement Comparable interface if you are sorting collection of objects.
For example if you have list of FavoriteColor objects and you want to sort them according to the priority of you favorite colors then you can define your own favorite color sorting order by implementing Comparable Interface.
In
java some classes like Stirng, BigDecimal, Integer, Date ... implements the Comparable interface.
Hope this helps.