Is string reference type / value type ?

Answer Posted / ankur sehgal

string is reference type but it behaves as value
type.Because every time u assign a value to string a new
object is created.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between dynamic type variables and object type variables in c#?

694


Does c# support a variable number of arguments?

782


How can I produce an assembly?

820


What is the difference between wrapper class and primitive?

655


What is dictionary collection in c#?

682


What is difference between iqueryable and ienumerable in c#?

638


Why do I get a syntax error when trying to declare a variable called checked?

787


How many root nodes are there in an xml document?

659


Is c# easier than c++?

709


What is the use of readkey in c#?

724


Structs are not reference types. Can structs have constructors?

686


What are the steps for creating clr trigger

794


What is string concatenation?

680


What is ispostback c#?

668


What is thread.sleep()?

691