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 |
What is jade template engine?
What is a web api?
How can u sort strings in array where strings are passed to method as arguments.
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?
What is Bundling and Minification in MVC?
How do you design a website with multilingual support in ASP.NET ?
Code for updating the database by entering the data into textboxes in aspx form?
Why do we use Option Explicit?
How can we implement a identity (sql server) call in an asp.net page?
What are the different Key TreeView Properties in Asp.net 2.0?
Why we use asp.net for website development?
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)