Question 141 / 297:  Which, inserted independently at //insert overridden call() here, will represent an overridden call() and compile with no error?
Choose 3
class Base {

void call() throws IllegalArgumentException {

}

}

public class Derived extends Base {

//insert overridden call() here

}

<< First < Previous Next > Last >>
Explanation:

An overriding method can throw the same exceptions, narrower exceptions, or no exceptions and can throw any runtime exceptions whether they were listed in the overridden method or not.

An overriding method cannot reduce the access scope of the overridden method but can widen it.

Exam Home Page
Ask
Carly Allen
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-certification-questions" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>