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...

int i = 1;
int j = 1;
System.Console.WriteLine(i == j);
System.Console.WriteLine(i.ToString() == j.ToString());
System.Console.WriteLine((object)i == (object)j);
Give the sample code above, what is the output to the console?

Answer Posted / sahdev singh

True - First time we are comparing only values.
True - Second time also we are comparing only values.
False - We are comparing reference of two objects.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is xor operator in c#?

1004


What is difference between a constant and read-only in C#?

1018


what is a enumeration in c#

1100


What is the difference between “constant” and “readonly” variables in c#?

1062


How to Show Message box in Metro Style App?

1084


Is c# good for beginners?

941


Is hashset ordered c#?

1015


Why would you use untrusted verification?

981


What is use of a HashTable in .NET?

1202


Can a dictionary have duplicate keys c#?

965


What is the difference between list and arraylist c#?

1124


The int maps to which C# keyword in .NET type?

1092


What is .net console?

1034


Why abstract class can not be instantiated?

929


Why do we use namespace in c#?

1001