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
Can hashset contain duplicates c#?
Is array a collection c#?
What are the different types of comments in c#?
Can a method return multiple values in c#?
What is generic delegate in c#?
Which programming language is best for desktop applications?
Can datetime be null c#?
What is the extension of c# file?
Explain the difference between class and interface in .net?
What types of object can I throw as exceptions?
What are value types in c#?
How Is The Dll Hell Problem Solved In .net?
How to generate strong name key file or which command is used to generated strong name key file?
Define delegate?
What happens during the process of boxing?