Question: Which statements are correct? (Choose two.) A. A Comparable implementation is often implemented by a lambda. B. A Comparable object has a compare() method. C.
Which statements are correct? (Choose two.)
A. A Comparable implementation is often implemented by a lambda.
B. A Comparable object has a compare() method.
C. The compare() and compareTo() methods have the same contract for the return value.
D. It is possible to sort the same List using different Comparator implementations.
E. Two objects that return true for equals() will always return 0 when passed to compareTo().
Step by Step Solution
3.34 Rating (148 Votes )
There are 3 Steps involved in it
The correct statements are A A Comparable implementation is often implemented by a lambd... View full answer
Get step-by-step solutions from verified subject matter experts
