Number of questions 1,751
Number of tests completed 248,333
Number of questions answered 3,716,146
Number of registered users 19,034
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
Answer4:
Answer5:
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: 7224
Incorrectly answered: 8111
Terms of Use
contact@quiznetonline.com Ver. 2.0.6783.38332