This question involves IOException, AWTException, and EOFException.
They are all checked exception types.
IOException and AWTException extend Exception.
EOFException extends IOException.
Suppose class X contains the following method:
void doSomething() throws IOException{ ... }
Which of the following methods may appear in class Y, which extends X?
doSomething()
{ ... } doSomething()
throws AWTException { ... } doSomething()
throws EOFException { ... } doSomething()
throws IOException, EOFException { ... } A, C, D.
An overriding method may throw an unlimited number of exception types, if all types are