Multiple choice

Which of the following statements is/are false about String class in java?

  1. String is a final class in java.

  2. String class is mutable.

  3. String class is thread-safe in java.

  4. None of the above

  5. Only (2) and (3)

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

String class is immutable and we cannot change the String value once stored.