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


Please Help Members By Posting Answers For Below Questions

Which is the base class in c#?

696


What is an object and a class?

769


What is web forms in c#?

689


Why do we need escape characters?

664


What is marshalling and what are different kinds of marshalling?

701


Is c# used for frontend or backend?

823


What is int16?

714


What are the advantages of generics in c#?

689


What is overriding in c#?

670


If you want to write your own dot net language, what steps you will u take care?

765


What is difference between abstraction and encapsulation in c#?

753


What is using in c#?

654


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?

751


Distinguish between array and arraylist in c#?

745


List some of the classes used by system.data namespace?

619