Is string a value type or a reference type?
Answers were Sorted based on User's Feedback
Answer / rajkumar
Basically String is Value type But its Works(Behave) like
Reference Type...
| Is This Answer Correct ? | 1 Yes | 9 No |
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 |
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 |
How can exception be handled with out the use of try catch?
What is the difference of a LEFT JOIN and an INNER JOIN statement? What is a Cartesian product? What causes it?
When we do partial refresh of a page using update panel how server knows it(which event occurs?)
How do we get only edited/deleted/inserted records from a Dataset?
What is custom events?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
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
What is distributed system in asp.net?
What is strong name and which tool is used for this?
How many column in table of sql server?
How to use a Master Database in Asp.net?
What is a 1x1 pixel?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)