The method that must be implemented in a class using the Comparable interface is:

(a) public Object compareTo(Object other)
(b) public Boolean compareTo(Object other)
(c) public int compareTo(Object other)
(d) none of the above

(c) public int compareTo(Object other)

Computer Science & Information Technology

You might also like to view...

Social networking is unquestionably the most popular social medium today

Indicate whether the statement is true or false

Computer Science & Information Technology

What character is used to separate multiple assignment statements in the SET clause?

a. Comma , b. Colon : c. Semicolon ; d. Period .

Computer Science & Information Technology