7
Answers

string and array are immutable?

Ask a question
George George

George George

16y
5.9k
1

Hello everyone,


I read from some documents that string/array are immutable, means when we change the content of a string (e.g. append text) or change the content of an array (e.g. append new element), then a new instance be created and the old instance will be discarded?


thanks in advance,
George


Answers (7)