Java is the future !: Quiz of the day | OCPJP - 16 Aug 2011

Tuesday, August 16, 2011

Quiz of the day | OCPJP - 16 Aug 2011


What is the output for the above code ?

Options :
a) Compile with error - Not allowed to override the return type of a method with a subtype of the original type.
b) class A - return C
c) class B - return D
d) Runtime Exception

No comments:

Post a Comment