Look at the API for the Comparable interface (which you seem to be interested in). It says :
This interface imposes a total ordering on the objects of each class that implements it. This ordering is referred to as the class's natural ordering, and the class's compareTo method is referred to as its natural comparison method.