George George

George George

  • NA
  • 778
  • 0

string and array are immutable?

Aug 25 2008 5:51 AM

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)