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 / vinay tiwari

//string is a refference type but it behavious like a value
//type.
//following programe show both charactersitic of string.
using System;
class a
{
public static void Main(String [] args)
{
String str1="hello";
String str2=str1;
String str3="hello";
Console.WriteLine(str1);
Console.WriteLine(str2);
if(str1==str3)
{
Console.WriteLine("str1 anb str3 are
equal ");
}
}
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain About namespaces

974


Which attribute is used in order that the method can be used as webservice?

932


What are different types of Delegates in C#?

1011


Can a class be private in c#?

956


What is datatable and dataset in c#?

989


Why we use oops in c#?

975


What does void mean in c#?

963


Can an abstract class inherit from another abstract class c#?

944


What is constants in c#?

893


What is the use of tuple in c#?

915


Can a loop recorder detect a heart attack?

1002


What floating point types is supported in C#?

1020


How long can loop recorders stay in?

1156


What is returned if you pass the value 12.34 to the parsefloat () function?

949


Define multicast delegate? How it be used?

1050