Is string reference type / value type?
Answer Posted / guru dayal roy
String is reference type. When we define a string and
initialise it creats an object and again when we try to
append something it creates a new object which contains
both the string togather. So since string initialization
creates an object we can say string is also reference type
which does not happen with other value types.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is datetime immutable c#?
What is the difference between abstract and virtual?
What does dbml stand for?
What is multithreading with .net?
Explain About delegates
Please explain value types and reference types used in c#?
Explain the role of Garbage collector and its generations?
What does firstordefault mean in c#?
Can abstract class be sealed?
What is a Jagged Array in C#?
What are the differences between static, public and void in c#?
What is a console file?
Does the variables of a private class-level inherited?
Does the system.exception class have any cool features?
What is ilist c#?