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 polymorphism and its types in c#?

850


Are structs value types or reference types?

1006


What is the difference between struct and class in c#?

1160


Can you explicitly call a destructor?

885


What do multicast delegates mean?

952


What is the difference between static and private constructor in c#?

955


Perfect Example Of While And Do-While Loop In C#.Net ?

937


Define interface class in c#?

848


What is the difference between method parameters and method arguments. Give an example?

886


What are methods c#?

841


What are delegates and why are they required?

923


What is iqueryable and ienumerable in c#?

913


What is stringwriter c#?

776


Explain About CLS?

921


What is asenumerable in c#?

847