Is string reference type / value type?

Answers were Sorted based on User's Feedback



Is string reference type / value type?..

Answer / baranee

Hi,

String is a value type but its not advisable to use for the
frequent usage of string.String is a class which has
default size of 16.If the value exceeds it will create one
more instance and left the old reference which is still not
cleared in memory. So we can use stringbuilder value type
which doubles the size when the default size exceeds.

Is This Answer Correct ?    1 Yes 3 No

Is string reference type / value type?..

Answer / dr.evil

String is a value Type.

Is This Answer Correct ?    0 Yes 2 No

Is string reference type / value type?..

Answer / prasanta

Sorry Iam confused,String is a value type or refereence
type give answer only who know the right answer.

Is This Answer Correct ?    0 Yes 4 No

Is string reference type / value type?..

Answer / zeeshan

String is Value type..

Is This Answer Correct ?    1 Yes 22 No

Is string reference type / value type?..

Answer / vasu

Afsoos galat Jawab Sahi Jawab.............
String is Value type
further no more discussion

Is This Answer Correct ?    5 Yes 79 No

Is string reference type / value type?..

Answer / vikram

sorry you are wrong , string is the value type

Is This Answer Correct ?    16 Yes 154 No

Post New Answer

More C Sharp Interview Questions

What connections does Microsoft SQL Server support?

3 Answers  


What is mvc firstordefault?

0 Answers  


How to make a class non-inheritable other than sealed?

7 Answers  


Explain namespaces in c#.

0 Answers  


Explain dataadapter.update method in .net?

0 Answers  






Can you store strings in arrays?

0 Answers  


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

0 Answers  


Is string nullable c#?

0 Answers  


What are the three types of predicates?

0 Answers  


If a child class instance is created, which class constructor is called first - base class or child class?

0 Answers  


How do I declare inout arguments in c#?

0 Answers  


Describe the parts of assembly.

0 Answers  


Categories