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
Why we use dll in c#?
What is the use of GC.KeepAlive Method?
what happens if you inherit multiple interfaces and they have conflicting method names?
To allow an element to be accessed using a unique key which .NET collection class is used ?
Which class comes after the SortedList class?
What is the usage of OLE?
What is platform independence"?
What is xaml in c#?
What are partial types in c#?
How many digits are in an integer?
What is lazy in c#?
What is a delegate how is it type safe?
What is xor operator in c#?
Can hashset contain duplicates c#?
What is this keyword in C#?