Why string are called Immutable data Type



Why string are called Immutable data Type..

Answer / kirti

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.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

Which is the base class for .net Class library?

12 Answers   Sonata, TCS,


What are the advantages of mvc over asp.net?

0 Answers  


what is the diff b/w asp.net 2.0 & 3.5

2 Answers   Wipro,


What does assert() method do?

1 Answers   MCN Solutions, Siebel Systems,


What is the mvc pattern (model view controller pattern)?

0 Answers  






More on CLR ?

2 Answers   MMTS,


Which .net framework is installed?

0 Answers  


What is .net architecture and framework?

0 Answers  


Why to use html.partial in mvc?

0 Answers  


Httpcontext objects?

2 Answers   HACL, HP,


Can I add asp.net mvc testcases in visual studio express?

0 Answers  


What are actions in asp.net mvc?

0 Answers  


Categories