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
What is data dictionary in c#?
Is equal in c#?
What are the 3 logical operators?
Why is c# a good programming language?
What are the 3 different types of arrays?
What are the 4 pillars of any object oriented programming language?
Is .net and c# the same?
Explain the difference between abstract class and interface.
What is serialization of data?
When should we use sealed class in c#?
What does convert toint32 mean?
What is extension method in c# and how to use them?
Major difference between Basic httpbinding and WShttpbinding?
the c# keyword .int. Maps to which .net type?
Explain the three test cases in unit testing?