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 exactly is serverless?
Can we override constructor in c#?
What are the different types of assemblies available and their purpose?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
Can you explain template pattern?
Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?
Explain the Usage of web.config
What are virtual destructors?
What does == mean in c sharp?
What is difference between static and constant variable?
Why we use dll in c#?
What is different between Implicit conversion and Explicit conversion in C#?
What is the use of console readkey ()?
Can we inherit partial class in c#?
How to use the sreamReader class to read form a text file?