Is string reference type / value type?

Answer Posted / shweta

100% String is Reference Type.

Value Type- All Numeric data types, Boolean, Char, Date,
Structs.

Reference Type- String, Arrays, Class, Delegates.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is interface inheritance?

534


Explain partial class in c#?

498


Why we use anonymous methods in c#?

493


What is for loop in c#?

505


What are the value types in c#?

509






What type is string in c#?

481


Is string nullable c#?

504


What does the keyword “virtual” declare for a method or property?

540


What is the difference between function and method in c#?

453


Is dll a library?

492


What is static void main in c#?

505


What is a constructor in c#?

518


Define c# and list the features.

536


Can I get the name of a type at runtime?

535


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

527