The compareTo method of the Comparable interface

A) returns true when the calling object is "less than" the object passed as the parameter
B) returns a negative integer when the calling object is "less than" the object passed as the parameter
C) returns zero when the calling object fails to equal the object passed as parameter
D) None of the above


B) returns a negative integer when the calling object is "less than" the object passed as the parameter

Computer Science & Information Technology

You might also like to view...

What two strategies are employed by the BSIMM security testing practice?

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

Computer Science & Information Technology

Discuss the main areas in a project lifecycle.

What will be an ideal response?

Computer Science & Information Technology

What two types of information do cells in a spreadsheet contain? Explain how the spreadsheet knows the type of the information.

What will be an ideal response?

Computer Science & Information Technology

?Choose the correct pronoun in the following sentence. Hayden and __________ hired the band for the party.

A. ?I B. ?me

Computer Science & Information Technology