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
What are extender provider components?
What are the advantages of generics in c#?
What's the difference between an integer and int?
How many dimensions can an array have?
When do you generally use a class over a struct?
What is static and use of it?
Can enum be null c#?
what is a structure in c#
Can arraylist store different data types in c#?
Is hashset ordered c#?
What is the purpose of escape sequence?
What is the difference between disposing of () and finalize() methods in c#?
What are the boolean data types in c#?
Which namespace is required to implement trace ?
Is c++ or c# better?