What is the value returned by the function CompareTo() if the invoking string is less than the string compared?

What is the value returned by the function CompareTo() if the invoking string is less than the string compared? Correct Answer value less than zero

CompareTo() function returns zero when both the strings are equal, it returns a value less than zero if the invoking string is less than the other string being compared and value greater than zero when invoking string is greater than the string compared to.

Related Questions

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