Is string reference type / value type ?
Answer Posted / ankur sehgal
string is reference type but it behaves as value
type.Because every time u assign a value to string a new
object is created.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is difference between string and stringbuilder in c#?
Why do we need interfaces in c#?
What is literal control
Is post back in c#?
Why do you need boxing in c#?
Explain the top reason to use c# language?
What is the difference between ienumerable and enumerable?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
How do I count the length of a string in c#?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
Are objects passed by reference in c#?
What is executereader in c#?
What is the default modifier for class in c#?
What is the difference between private and protected in c#?
Why delegates are required?