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?

Answers were Sorted based on User's Feedback



Is string a value type or a reference type?..

Answer / rajkumar

Basically String is Value type But its Works(Behave) like
Reference Type...

Is This Answer Correct ?    1 Yes 9 No

Is string a value type or a reference type?..

Answer / chandrapal singh

string is value type by nature. it does not follow rules
of reference type. eg

string MyName1 = "chandrapal Singh";
string MyName2;

MyName2 = MyName1;
MyName2 = "deepak";

Response.Write("MyName1 :" + MyName1 + " MyName2 :" +
MyName2);

This gives Output
MyName1 :chandrapal Singh MyName2 :deepak

if this is reference type then the output should be
MyName1 :deepak MyName2 :deepak

Is This Answer Correct ?    7 Yes 29 No

Is string a value type or a reference type?..

Answer / raju

string is a value type...not reference type....we ll not
create an (instance) for that one...

Is This Answer Correct ?    7 Yes 62 No

Post New Answer

More ASP.NET Interview Questions

What is jade template engine?

0 Answers  


What is a web api?

0 Answers  


How can u sort strings in array where strings are passed to method as arguments.

3 Answers   CTS, Syncfusion,


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

0 Answers   InfoAxon Technologies,


Difference between HTML control and Web Server Control?

4 Answers  


What is Bundling and Minification in MVC?

0 Answers   HCL,


How do you design a website with multilingual support in ASP.NET ?

0 Answers   MCN Solutions,


Code for updating the database by entering the data into textboxes in aspx form?

2 Answers   TCS, Wipro,


Why do we use Option Explicit?

2 Answers   Microsoft,


How can we implement a identity (sql server) call in an asp.net page?

0 Answers  


What are the different Key TreeView Properties in Asp.net 2.0?

1 Answers   TCS,


Why we use asp.net for website development?

0 Answers  


Categories