Is string reference type / value type ?
Answer Posted / narayansahu
It's a common misconception that string is a value type.
That's because its immutability makes it act sort of like
a value type. It actually acts like a normal reference type
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is executescalar in c#?
Explain the difference between class and interface in .net?
What is msil in c#?
What is an indexer in c#?
Can a class be protected in c#?
Explain how can you clean up objects holding resources from within the code?
What is the difference while using directive vs using statement ?
Explain about Threading Types.
What is a string c#?
Why do we need oops in c#?
How a two-dimensional array declared in C#?
How many types of serialization are there in c#?
What is value c#?
Define an assembly in .net?
Can a string be null c#?