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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you pass multiple complex types in Web API?

1075


Why mvc is faster than asp.net? : Asp.Net MVC

1062


Which type of state management is provided by Query String in ASP.NET?

1031


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

899


What is the use of session in web application?

952


What are url fragments?

912


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

973


What are the advantages of using sql stored procedures instead of adhoc sql queries in an asp.net web application?

1110


What is the difference between viewstate and hidden field in asp.net?

1032


Is asp.net is a programming language?

945


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2457


Why the javascript validation not run on the asp.net button but run successfully on the html button?

963


What is _viewstart?

918


What's the ASP.Net Application life cycle?

1110


Explain what is clr?

1037