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

About .NET Framework ?

5 Answers   MMTS,


Can a nested object be used in Serialization

1 Answers  


What is GC (Garbage Collection) and how it works

1 Answers  


What is the necessity for singning an assembly with a strong name?

1 Answers   L&T,


Explain what languages does the .net framework support?

0 Answers  






What is Area in ASP.Net MVC?

0 Answers  


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

0 Answers   Microsoft,


Explain Keep method in Tempdata in ASP.Net MVC?

0 Answers  


How we can register the Area in ASP.Net MVC?

0 Answers  


Can you handle all button click events at once in a form? Give coding.

1 Answers   Kanbay,


What is the difference between a Struct and a Class

1 Answers   Siebel Systems,


Explain two instances where routing is not implemented or required?

0 Answers  


Categories