Final answer:
The java-lang package contains the Comparable interface, which is used for comparing objects by implementing the compareTo() method.
Step-by-step explanation:
The standard java-lang package contains the Comparable interface, which provides a useful method for comparing objects. This interface defines the Comparable () method, which any class implementing the Comparable interface must override. Objects of a class that implements Comparable can be compared to each other, enabling functionalities like sorting collections of objects. The standard java-lang package contains the Comparable interface, which provides a useful method for comparing objects. This interface defines the compareTo() method, which any class implementing the Comparable interface must override. Objects of a class that implements Comparable can be compared to each other, enabling functionalities like sorting collections of objects.