Is string reference type / value type?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / vasu
Afsoos galat Jawab Sahi Jawab.............
String is Value type
further no more discussion
Is This Answer Correct ? | 5 Yes | 79 No |
Answer / vikram
sorry you are wrong , string is the value type
Is This Answer Correct ? | 16 Yes | 154 No |
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
What is dll hell, and how does .net solve it?
What is dependency injection?
How do I use the 'using' keyword with multiple objects?
Explain 'structure padding'?
What is 8 bit signed integer?
Define multicast c# delegate?
Name which controls do not have events?
List down the reason behind the usage of c# language.
Why do we use methods in c#?
Explain the process of Serialization?
How do you inherit from a class in C#?