What is the value returned by function compareTo() if the invoking string is less than the string compared?
A. zero
B. value less than zero
C. value greater than zero
D. None of the mentioned
Answer:A
What is the value returned by function compareTo() if the invoking string is less than the string compared?
A. zero B. value less than zero C. value greater than zero D. None of the mentioned