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
Which is the base class in c#?
What is an object and a class?
What is web forms in c#?
Why do we need escape characters?
What is marshalling and what are different kinds of marshalling?
Is c# used for frontend or backend?
What is int16?
What are the advantages of generics in c#?
What is overriding in c#?
If you want to write your own dot net language, what steps you will u take care?
What is difference between abstraction and encapsulation in c#?
What is using in c#?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
Distinguish between array and arraylist in c#?
List some of the classes used by system.data namespace?