Number of questions 1,751
Number of tests completed 251,844
Number of questions answered 3,758,174
Number of registered users 19,141
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: 7575
Incorrectly answered: 8642
Terms of Use Ver. 2.0.6783.38332