Home » JAVA Programming » Strings » Question
  1. What is the value returned by function compareTo() if the invoking string is greater than the string compared?
    1. zero
    2. value greater than zero
    3. Only zero
    4. value less than zero
    5. None of these
Correct Option: B

value greater than zero



Your comments will be displayed only after manual approval.