About Question enthuware.ocajp.i.v7.2.1113 :
Posted: Wed Nov 27, 2013 11:58 am
Question: "Which of the following is a legal return type of a method overriding the given method: public Object myMethod() {...} (Select the best option.)"
Answer listed as correct: "Return type can be any object since all objects can be cast to Object."
"Any object" is not a type. The answer should state "[...] can be any type [...]".
Answer listed as correct: "Return type can be any object since all objects can be cast to Object."
"Any object" is not a type. The answer should state "[...] can be any type [...]".