Java Strings

Casual Mode - Take your time!

1 / 15
Correct
0
Incorrect
0
Score
0%
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
Change Mode