What is the output of this program?
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.
output:
$ javac output.java
$ java output
ac
Submit Your Solution hear: