Why string is called Immutable data Type?

 Posted by Blessybaby on 1/5/2010 | Category: .NET Framework Interview questions | Views: 5223

The memory representation of string is an Array of Characters, So on re-assigning the new array of Char is formed & the start address is changed. Thus keeping the Old string in Memory for Garbage Collector to be disposed.

| Alert Moderator 

Comments or Responses

Login to post response