Why string are called Immutable data Type

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use multiple submit buttons in asp.net mvc?

785


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

2214


What are scaffold templates in mvc?

743


What are the advantages of mvc over asp.net?

745


Explain what platforms does the .net framework run on?

761






What is Attribute Routing in ASP.Net MVC?

768


What is controllercontext?

750


Explain representational state transfer (rest) in detail?

751


What does a viewmodel do?

711


Explain ASP.NET MVC Identity and Security?

717


What is the difference between model view and controller?

658


What is orm entity framework?

692


What is the difference between entity framework and mvc?

729


Can you set the unlimited length for "maxjsonlength" property in config?

721


What is separation of concerns in asp.net mvc?

779