Posted incompare
Can Comparable Interface Return A Boolean In Java?
Comparable interface returns an integer, not a boolean, to indicate the relative order of two objects, but the result of the compare method can be interpreted to derive a boolean-like…