Multiple Choice Question

Quiz Guidelines

 

QID: 
370
Question: 

Which of the following is a legal return type of a method overriding the given method:
public Object myMethod() {...}
(Select the best option.)

Select 1 option

A. Object
B. String
C. Return type can be any object since all objects can be cast to Object.
D. void
E. None of the above.

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!