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 is mvc entity framework?

0 Answers  


how do you query in entity model when the result has a join from from different database other than the entity model?

0 Answers   Microsoft,


What is model first? : Entity framework

0 Answers  


Can I redirect tracing to a file

1 Answers  


what is way of loading data in ef (entity framework)?

0 Answers   Microsoft,






What is definingquery in entity framework? : Entity framework

0 Answers  


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

0 Answers  


Why should we go for entity framework?

0 Answers  


mention what is csdl, ssdl and msl sections in an edmx file?

0 Answers   Microsoft,


Which .net framework is installed?

0 Answers  


how can you enhance the performance of entity framework?

0 Answers   Microsoft,


What are the types of authentication in .net

1 Answers  


Categories