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

Can hashset contain duplicates c#?

547


Is array a collection c#?

611


What are the different types of comments in c#?

573


Can a method return multiple values in c#?

518


What is generic delegate in c#?

531






Which programming language is best for desktop applications?

560


Can datetime be null c#?

564


What is the extension of c# file?

526


Explain the difference between class and interface in .net?

499


What types of object can I throw as exceptions?

616


What are value types in c#?

585


How Is The Dll Hell Problem Solved In .net?

670


How to generate strong name key file or which command is used to generated strong name key file?

604


Define delegate?

621


What happens during the process of boxing?

706