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

If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

929


Is collection a data structure?

917


What is the namespcae generally given to the webpage of the .NET Framework ?

1022


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

875


What is different between Implicit conversion and Explicit conversion in C#?

996


What is the difference between an application domain and a process?

970


Why do we use public static void main in c#?

904


Which class comes after the SortedList class?

944


What is anonymous methods in c#?

1041


What is serialization in c#?

864


What is the difference between interface and inheritance in c#?

875


Explain the three test cases in unit testing?

982


Explain static class members.

1009


Can namespace contain the private class?

907


Explain Constructor and destructor?

916