Is string reference type / value type?
Answer Posted / 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 |
Post New Answer View All Answers
What is the reason behind the invention of c#?
Explain the difference between event and a delegate in c#?
Why singleton class is sealed?
In gridview in editmode if we want to display information in one combobox based on
What is difference between array and arraylist in c#?
Is comparator a functional interface?
What is method overriding in c#
Is it possible to inline assembly or il in c# code?
What are the examples of data types?
What is cts, clr?
What are Uses of CLR
What is dynamic object in c#?
Explain what is the smallest unit of execution in .net?
What are extender provider components?
Explain deadlock?