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

How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

0 Answers  


How route table has been created in ASP.NET ASP.Net MVC?

0 Answers  


Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

0 Answers  


What are the contents of assembly?

2 Answers  


What are the components of the .net framework.

0 Answers  


How do you enforce garbage collection in .NET

1 Answers   Wipro,


What are the levels at which filters can be applied in an asp.net mvc application?

0 Answers   NA,


Explain peek method in tempdata in asp.net mvc?

0 Answers  


What is needed for running an application built on winfx on the .net framework 3.0?

0 Answers  


What is a view engine?

0 Answers  


what are abstract classes? what is overriding?

12 Answers  


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

2 Answers   Wipro,


Categories