Number of questions 1,751
Number of tests completed 253,259
Number of questions answered 3,776,999
Number of registered users 19,213
Sign In | Register
Skip Navigation Links
Question: What is the output of Console.WriteLine(((object)10).Equals(10));?
Answer1: True
Answer2: False
Answer3: Nothing, you will get a compiler error
Answer: True

Explaination: The Equals method of Object will box its parameter, and the expression evaluates to true. (object)10 == 10 would not compile since you can't compare object and int.
Link: External Explaination

Correctly answered: 7713
Incorrectly answered: 8804
Terms of Use Ver. 2.0.6783.38332