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

Is c# int immutable?

872


What is this keyword in C#?

934


What is inline function in c#?

933


What is meant by generics in c#?

881


Do unused Namespaces in c# affect run-time performance?

1007


Is typeof c#?

944


Write a program to find the angle between the hours and minutes in a clock

888


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

929


What are most desktop applications written in?

925


Why we use extension method in c#?

905


What is a decimal in c#?

910


Is c# difficult to learn?

832


Is array immutable in c#?

845


How do I convert a string to an int in c#?

945


Can a method be sealed in c#?

878