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.

c. On the Comparator for the first field, you call method comparing with the second Function. Actually, you call method thenComparing with the second Function.

Computer Science & Information Technology

You might also like to view...

Queries that select data from existing queries are:

A) crosstab queries. B) internal queries. C) nested queries. D) doubled queries.

Computer Science & Information Technology

Under MVS, the __________ is the dispatcher.

a. master scheduler b. job entry subsystem c. supervisor d. initiator

Computer Science & Information Technology