In the event where the initiating string is longer than the compared string, what result is returned by the compareTo() function?
A. a value that is greater than 0
B. a value that is less than 0
C. zero
D. none of the above
Answer:A
In the event where the initiating string is longer than the compared string, what result is returned by the compareTo() function?
A. a value that is greater than 0 B. a value that is less than 0 C. zero D. none of the above