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

What is data dictionary in c#?

695


Is equal in c#?

690


What are the 3 logical operators?

770


Why is c# a good programming language?

712


What are the 3 different types of arrays?

816


What are the 4 pillars of any object oriented programming language?

676


Is .net and c# the same?

783


Explain the difference between abstract class and interface.

887


What is serialization of data?

752


When should we use sealed class in c#?

706


What does convert toint32 mean?

740


What is extension method in c# and how to use them?

698


Major difference between Basic httpbinding and WShttpbinding?

801


the c# keyword .int. Maps to which .net type?

958


Explain the three test cases in unit testing?

810