Answer: A. The comparable interface defines the compareTo method for comparing objects.
Explanation: Comparison is the intent to sort or search for an item. this can be done using Java.
The Java search lies between the “Comparable” & “Comparator” Interfaces.
The comparable interface defines the compareTo method for comparing objects. It compares between two objects of the implementing class.
However, the comparator interface compares between file objects.