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 default constructor c#?

951


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

949


Is it possible to inline assembly or il in c# code?

1027


What is jagged array?

918


What is the use of static in c#?

925


Explain dataset.acceptchanges method in .net?

947


How to override a function in c#?

1002


What is Co- and Contra-Variance in C#?

979


Do events have return type c#?

926


Is .net and c# the same?

973


How long does a loop recorder procedure take?

988


what is IFormatable

982


Is there a way of specifying which block or loop to break out of when working with nested loops?

1003


What is ildasm and obfuscator in net?

946


Which property of the textbox cannot be changed at runtime?

945