Skip to main content


It's important to understand the distinction between Comparable vs Comparator Java in order to properly utilize the two in your programming. To begin with, let's consider the definition of a Comparable: it is an interface that defines a natural ordering for a class of objects. This means that a Comparable object can be sorted without additional assistance from other classes.