KnowledgeBoat Logo
|

Computer Applications

Which of these is an incorrect statement?

  1. String objects are immutable, they cannot be changed.
  2. When you assign a new value to a String object, Java internally creates another String object.
  3. StringBuffer is a mutable class that can store sequence of characters.
  4. String objects are actually arrays of characters.

Java String Handling

8 Likes

Answer

String objects are actually arrays of characters.

Reason — String are classes in Java. Array of characters is one of the data members of String class.

Answered By

2 Likes


Related Questions