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 / aspdev556

true
true
false

Is This Answer Correct ?    43 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is “using” statement in c#?

563


Explain attributes in c#?

545


What are jump statements in c#?

582


What does void do in unity?

595


Why are c# strings immutable?

577






what is the scope of anonymous type ?

658


write a c# program add two matrix with input number ?

640


What is whitespace in c#?

586


What is datetime minvalue in c#?

670


Is there any sample c# code for simple threading?

626


What is constructors, explain with syntax

613


What is a nested type. Give an example?

721


What is default constructor in c#?

583


What is difference between il and dll ?

613


What's different between c# and c/c++?

618