Given the code fragments:
and
What is the result?
A. Video played.Game played.
B. A compilation error occurs.
C. class java.lang.Exception
D. class java.io.IOException
Given the code fragments:
and
What is the result?
A. Video played.Game played.
B. A compilation error occurs.
C. class java.lang.Exception
D. class java.io.IOException
B
B
the subclass should throw more specific exception , not more general one.
B