Which of the following declares a Comparator where all objects are treated as equal? A. Comparator comp

Question:

Which of the following declares a Comparator where all objects are treated as equal?

A. Comparator comp = (c1) -> 0;

B. Comparator comp = (c1) -> {0};

C. Comparator comp = (c1, c2) -> 0;

D. Comparator comp = (c1, c2) -> {0};

E. None of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: