Are c# strings immutable?



Are c# strings immutable?..

Answer / Raghvendra Vikram Yadav

No, C# strings are not immutable. However, once a string object is created, its contents cannot be changed, and modifications result in a new string being returned instead.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the ouput of the following program?

1 Answers  


Why do we need static class in c#?

1 Answers  


What is the difference between static and constant variables?

1 Answers   Accenture,


What basic steps are needed to display a simple report in crystal?

1 Answers  


How can we sort the elements of the array in descending order?

1 Answers  


What do you know about WM_CHAR message?

1 Answers   C DAC,


How jit (just in time) works?

1 Answers  


What is meant by generics in c#?

1 Answers  


what is diffrence between protected ,internal and protected internal?? whether protected field available in derived class which is outside the assembly. if not ..this is possible by which access modifiers??

2 Answers  


code to generate a excel sheet and to write data into it --- -it has to fetch the excel sheet which is in one folder placed by us inside a project folder(i,e it has to create a instance of that excel sheet) and write the data into it row by row please respond as early as possible

1 Answers  


Difference between value and reference type. What are value types and reference types?

1 Answers  


Is list passed by reference c#?

1 Answers  


Categories