Collections method sort that accepts a List as an argument. It sorts the List elements, which must implement the __________ interface.

a. Comparable.
b. Comparator.
c. Compare.
d. Ordering.

a. Comparable.

Computer Science & Information Technology

You might also like to view...

On each iteration of the following range-based for loop for (int element : my Array) cout << element << end l;

A) an array value. B) an array subscript. C) an array name. D) an array location. E) none of the above.

Computer Science & Information Technology

Signal and wait are examples of ______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology