Start learning →

What do string manipulation functions return in Java?

AA newly allocated copy
BThe modified original
CAn unchecked pointer
DA deleted byte buffer
Answer & Solution
Correct answer: A. A newly allocated copy
Due to immutability, Java string manipulations return a freshly allocated copy.
Practise this question with Quill — ICSE Class 10 →

Keep practising String Handling and Wrapper Classes

Browse all String Handling and Wrapper Classes questions for ICSE Class 10, or explore more Computer Applications topics.

Start a String Handling and Wrapper Classes lesson →