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

Are c# objects passed by reference?

566


What is meant by collections in c#?

555


What is the file extension for c#?

620


What is difference between C# and VB.NET?

653


Is int a struct in c#?

614






how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.

1398


What is a struct in C#?

660


What is a console in c#?

591


What is the difference between static and private constructor?

586


What is lazy loading c#?

615


List the 5 different access modifiers in c#?

615


Can a struct inherit from another struct or class in c#?

621


Can I use parseint?

573


What does immutable mean in c#?

629


Is Multiple-inheritance supported by c#?

671