Is string reference type / value type ?

Answer Posted / narayansahu

It's a common misconception that string is a value type.
That's because its immutability makes it act sort of like
a value type. It actually acts like a normal reference type

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a framework in c#?

466


What is cookies in c# asp net?

504


Which class does the remote object has to inherit?

606


Is c# easier than c++?

535


What is msil in c#?

546






What is the difference between “dispose” and “finalize” variables in c#?

484


What does it mean?

550


What is the difference between early binding and late binding in c#?

500


What is difference between encapsulation and abstraction in c#?

454


What is a generic method?

485


What is event delegate in c#?

578


What is dependency in software?

521


Explain copy constructor?

661


What are the types of class in c#?

493


Can you use all access modifiers for all types?

537