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 you mean by routing in asp.net mvc?

0 Answers  


I want ask from plz smaple example code for Biztalkk server

0 Answers  


What does 'managed' mean in the .NET context

1 Answers  


What are the features that are new in .net 2.0

2 Answers   Emphasis,


In razor syntax, what is the escape sequence character for @ symbol?

0 Answers  






What is the use of finalize and dispose eventhough garbage collector is working?

3 Answers   Kanbay,


What is the use of view model in asp.net mvc?

0 Answers  


What is stateless model?

0 Answers  


What's the .NET class that allows the retrieval of a data element using a unique key

1 Answers  


What are ajax helpers in mvc?

0 Answers  


What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?

0 Answers  


Explain peek method in tempdata in asp.net mvc?

0 Answers  


Categories