Question: Which of the following declares a Comparator where all objects are treated as equal? A. Comparator comp = (c1) -> 0; B. Comparator comp =
Which of the following declares a Comparator where all objects are treated as equal?
A. Comparator
B. Comparator
C. Comparator
D. Comparator
E. None of the above.
Step by Step Solution
3.31 Rating (157 Votes )
There are 3 Steps involved in it
The correct answer is C Comparator comp c1 c2 0 Explanation In Java a Comparator is a functional int... View full answer
Get step-by-step solutions from verified subject matter experts
