Solved

Which Statement in the Following Sequence of Statements About Sorting

Question 3

Multiple Choice

Which statement in the following sequence of statements about sorting objects by two fields is false?


A) To sort objects by two fields, you create a Comparator that uses two Functions.
B) First you call Comparator method comparing to create a Comparator with the first Function.
C) On the Comparator for the first field, you call method comparing with the second Function.
D) The resulting Comparator compares objects using the first Function then, for objects that are equal, compares them by the second Function.

Correct Answer:

verifed

Verified

Related Questions