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

is it possible to access a remote web service Without UDDI?

1018


What is the difference between == and object.equals?

993


What is bit in c#?

978


Why we use extension method in c#?

958


Is collection a data structure?

949


What is difference between Enum and Struct?

1005


How does c# generics and c++ templates compare?

924


What is difference between private, protected, and public in C#?

1059


Which .gang of four. Design pattern is shown below?

923


Is javascript harder than c#?

964


Is c# still popular?

887


What is the benefit of using interface in c#?

1008


Can abstract class be sealed in c#?

889


Is c# good for beginners?

897


How many destructors can a class have?

1035