Number of questions 1,751
Number of tests completed 246,984
Number of questions answered 3,697,077
Number of registered users 18,985
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: 7089
Incorrectly answered: 7902
Terms of Use
contact@quiznetonline.com Ver. 2.0.6364.35217