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
Are c# objects passed by reference?
What is meant by collections in c#?
What is the file extension for c#?
What is difference between C# and VB.NET?
Is int a struct in c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What is a struct in C#?
What is a console in c#?
What is the difference between static and private constructor?
What is lazy loading c#?
List the 5 different access modifiers in c#?
Can a struct inherit from another struct or class in c#?
Can I use parseint?
What does immutable mean in c#?
Is Multiple-inheritance supported by c#?