Computer Applications

Which of the following methods belong to the String class ?

  1. length()
  2. compareTo()
  3. equals()
  4. substring()
  5. All of these
  6. None of them

Java String Handling

8 Likes

Answer

All of these

Reason — All of the given methods belong to the String class.

Answered By

5 Likes


Related Questions