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
How can you pass multiple complex types in Web API?
Why mvc is faster than asp.net? : Asp.Net MVC
Which type of state management is provided by Query String in ASP.NET?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What is the use of session in web application?
What are url fragments?
Can we use a static function with a non-static variable?
What are the advantages of using sql stored procedures instead of adhoc sql queries in an asp.net web application?
What is the difference between viewstate and hidden field in asp.net?
Is asp.net is a programming language?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
What is _viewstart?
What's the ASP.Net Application life cycle?
Explain what is clr?