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

What are the ways to deploy an assembly?

3 Answers  


When do you absolutely have to declare a class as abstract

1 Answers   Siebel Systems,


How to bind table colum with gridview column?

0 Answers  


what is .net?

20 Answers   IBM,


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

1 Answers  






How do you convert a string into an integer in .NET

1 Answers  


Which version of .net framework is installed?

0 Answers  


what are partial classes?

12 Answers   Digimaker, HP, N Tech, TCS,


what are the different stepts to create shared assemblies?

1 Answers  


What is serialization in .NET? What are the ways to control serialization?

2 Answers  


In which circumstances you used delegates?

5 Answers   HP,


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

0 Answers  


Categories