Is string reference type / value type ?

Answer Posted / avisek

string is referrence type....
bcz there is no limitations of string means it can have variable length......thats why str[0],str[1],
string stores only the referrence to the value stored in it....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are extender provider components? Explain how to use an extender provider in the project.

599


What are data types with examples?

617


Explain how do I get deterministic finalization in c#?

601


What is escape sequence in c#?

699


What is the task perform by clr?

685






Define interface class in c#?

619


Define the term immutable ?

745


Can we inherit a class with private constructor in c#?

728


What is difference between float and decimal?

639


What are the types of comment in c# with examples?

592


Explain the Abstract class in c#.net

670


Do we get an error while executing the “finally” block in c#?

621


What are the different types of constructors?

616


Is char * null terminated?

640


What is thread and explain states of a thread in c#?

579