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 reference type / value type?

Answer Posted / malli

String Is Reference Type Ex

string StrName1 = "Test";
string StrName2 = StrName1;
StrName2="Test1";
Console.WriteLine("StrName1="+StrName1);
Console.WriteLine("StrName1=" + StrName2);

Object objStrName1 = "Test";
Object objStrName2 = objStrName1;
objStrName2 = objStrName1;
objStrName2 = "Test1";
Console.WriteLine("objStrName1=" + objStrName1);
Console.WriteLine("objStrName2=" + objStrName2);
Console.WriteLine("Malli");

OutePut:-

StrName1=Test
StrName1=Test1
objStrName1=Test
objStrName2=Test1

No More Discusion...

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is using keyword?

866


can you declare an override method to be static if the original method is not static?

955


What is the namespace for the thread class?

887


Is there an equivalent to the instanceof operator in visual j++?

909


What is hash c#?

879


Explain the difference between .net and c#?

882


What do you mean by string objects are immutable?

946


When should you use generics?

872


what are implementation inheritance and interface inheritance?

880


What is readline c#?

833


Why abstraction is used in c#?

860


How does dll hell solve in .net?

916


What is int parse in c#?

908


What is difference between private and protected in c#?

891


What is console write in c#?

878