Question: The compareTo() method in Comparable interface a. compares two data in the user- defined object for sorting b. compares two objects for the equality. c.
The compareTo() method in Comparable interface
a. compares two data in the user- defined object for sorting
b. compares two objects for the equality.
c. indicates if two objects have "is a" relationship
d. indicates if two objects have "has a" relationship
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
