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 Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
Name any three ways to pass parameters to a method in c#?
What is routing in c#?
What is the advantage of static class in c#?
Why do we need encapsulation in c#?
Why c# is called c sharp?
Explain the types of errors in c#?
What is xaml file in c#?
What are the namespace level elements?
Why do we need indexers in c#?
What are the properties of string?
How does split work in c#?
What are anonymous types in c#?
Which programming language is best for desktop applications?