To compare String objects for the purpose of sorting, a programmer should


A) use the comparison operator <
B) use the comparison operator <=
C) use the compareTo method of the Comparable interface
D) use the relational operator < to compare references to the String objects

C) use the compareTo method of the Comparable interface

Computer Science & Information Technology

You might also like to view...

The term ________ refers to a machine that is designed to improve the performance of the execution of scalar instructions.

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

Computer Science & Information Technology

Column charts are used only when there is one data series.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology