Is string reference type / value type?
Answer Posted / guru dayal roy
String is reference type. When we define a string and
initialise it creats an object and again when we try to
append something it creates a new object which contains
both the string togather. So since string initialization
creates an object we can say string is also reference type
which does not happen with other value types.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is ado net in c#?
Describe the parts of assembly.
What is a lambda expression in c#?
What is the difference between const and static read-only?
What is a constructor in c#?
How long can loop recorders stay in?
What is sealed class in c#?
How do I automate my desktop application?
If you define a user defined data type by using the class keyword, is it a value type or reference type?
What are the uses of delegates in c#?
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
What is an assembly qualified name
What is the difference between system.text.stringbuilder and system.string?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
What are the value types in c#?