from this mock:
http://valiveru.tripod.com/java/jvaltest.html It says that the only right answers are C and D, but B also compiles, right? It is never a problem to add a RuntimeException to the method throws clause.
For example, I have the Daddy class, which has the methodX() that throws nothing.
And class Son extends Daddy, which throws RuntimeException, this compiles fine!!!
i really think that the ansswer of this question ios wrong, and you?
[ adjusted spacing in code block ]
[ May 26, 2002: Message edited by: Jessica Sant ]