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 is c# used?
Explain how can you clean up objects holding resources from within the code?
Define the term immutable ?
What do you know about Translate Accelerator?
Which one is trusted and which one is untrusted?
What is difference between ilist and list in c#?
Can we have multiple constructors in a class c#?
What is the console on a mac?
What is the difference between array and arraylist in c#?
Is c# dictionary a hash table?
What are the differences between static, public and void in c#?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
What is namespace in oop?
What is the solution if you need to manipulate sets of items?
What is difference between destructor and finalize?