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 is predicate c#?
Define a class and an object?
what is scope of a protected internal member variable of a c# class
How can we make a thread sleep for infinite period ?
What is dataview c#?
Which operator cannot be overloaded in c sharp?
What is using keyword in C#?
Explain the different types of delegates used in c#.
How many dimensions can an array have?
Explain lock, monitors, and mutex object in threading.
What does get set mean in c#?
Explain how to parse a datetime string?
What is difference between static and constant variable?
Distinguish between finally and finalize blocks?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?