Is string reference type / value type ?
Answer Posted / ankur sehgal
string is reference type but it behaves as value
type.Because every time u assign a value to string a new
object is created.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a method and a property?
Can constructor be protected in c#?
What is instantiating a class in c#?
What are the properties of a string class?
Can derived classes have greater accessibility than their base types?
What is the data type for bit in c#?
Is array ienumerable c#?
What does console readline do?
Describe an abstract class?
What is a sealed class?
Is it possible to have different access modifiers on the get/set methods of a property?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
Is there an equivalent to the instanceof operator in visual j++?
Explain the difference between abstract class and interface.
Can you create sealed abstract class in c#?