📚 Practice Mode

Java Strings

Learn at your own pace with hints and detailed explanations

1 / 15
Multiple Choice

Which of the following methods is/are defined in the String class for comparing the Strings?

  1. equals(String s)
  2. compareToIgnoreCase(String s1)
  3. compareTo(String s3)
  4. both 2 and 3
  5. all of these