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

How can exception be handled with out the use of try catch?

0 Answers  


What is the difference of a LEFT JOIN and an INNER JOIN statement? What is a Cartesian product? What causes it?

1 Answers   Syntax Softtech,


When we do partial refresh of a page using update panel how server knows it(which event occurs?)

2 Answers  


How do we get only edited/deleted/inserted records from a Dataset?

1 Answers   Syntax Softtech,


What is custom events?

0 Answers  


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

0 Answers  


when i want to use asp.net configuration for creat users and roles i recived this message: There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem: Unable to connect to SQL Server database. when i clicked the choose data source button that give me another message that is this: Use this page to configure how Web site management data such as membership is stored. You can use a single provider for all the management data for your site or you can specify a different provider for each feature. Your application is currently configured to use the provider: AspNetSqlProvider Select a single provider for all site management data Select a different provider for each feature (advanced) ------------------------- and this message was reapeted in other choose again. please help me if u know why i gave that message so i wont can creat my users and roles

0 Answers  


What is distributed system in asp.net?

0 Answers  


What is strong name and which tool is used for this?

4 Answers   Accenture,


How many column in table of sql server?

3 Answers  


How to use a Master Database in Asp.net?

0 Answers   MCN Solutions,


What is a 1x1 pixel?

0 Answers  


Categories