Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is string a value type or a reference type?

Answer Posted / micho

Strings are reference types, but they are special reference
types because they are made to behave like value-types.
For instance, after assigning a string to another, the two
strings remain independent. Likewise, you compare strings
with the = operator (because it is overloaded).

You can open the MSDN and see that strings are classes (ie,
reference-types).

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the service stream content?

1028


How do we ensure view state has not tampered?

1018


What is the behavior of a Web browser when it receives an invalid element?

1106


Difference between web user control and web custom control?

913


What is session management in web application?

1013


If we remove web.config or machine.config from the application then, is this application will works?

1005


Can we use a static function with a non-static variable?

957


Define tracing.

1108


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

929


Explain the difference between array and linkedlist?

980


What is server transfer?

893


What is an asp.net web form?

1084


Which control has default post back is enabled(true)?

1059


How do you do client-side validation in .net? How to disable validator control by client side javascript?

1012


Explain the differences between clr & cts?

994