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


Please Help Members By Posting Answers For Below Questions

List the different stages of a thread?

480


What is remote data?

465


Describe two uses of the “using” statement during the operation of c#?

543


How do you define a predicate?

480


How are Windows programs different from normal C-programs?

1658






What is an array? Give the syntax for a single and multi-dimensional array?

483


Why abstract class can not be instantiated?

446


What are primitive data types in c#?

516


What is the usage of transponders?

537


In which way you can convert a value-type to a reference-type?

526


What is the CTS, and how does it relate to the CLS?

545


Explain About ADO and its objects

565


Can an exception be thrown from a catch block?

568


In which format you can pass the value in the sleep function?

537


How do switch statements work?

474