adplus-dvertising
frame-decoration

Question

What is the value returned by function compareTo() if the invoking string is greater than the string compared?

a.

zero

b.

value less than zero

c.

value greater than zero

d.

none of the mentioned

Posted under Java Programming

Answer: (c).value greater than zero

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the value returned by function compareTo() if the invoking string is greater than the string compared?