- The main purpose of comparator interface is for customized sorting Order
- Comparator Interface is Present in java.util
- The comparator interface defines two methods- comparetTo() and equals()
- The only implemented classes of Comparator are collator and RuleBaseCollator.
- Default Natural Sorting Order.
- Present in java.lang
- The comparable interface defines CompareTo()
- The implemented methods of comparable interface are all wrapper classes and String classes.