Question 32 / 35:  3. class SubException extends Exception { }

4. class SubSubException extends SubException { }

5.

6. public class CC { void doStuff() throws SubException { } }

7.

8. class CC2 extends CC { void doStuff() throws SubSubException { } }

9.

10. class CC3 extends CC { void doStuff() throws Exception { } }

11.

12. class CC4 extends CC { void doStuff(int x) throws Exception { } }

13.

14. class CC5 extends CC { void doStuff() { } }

What is the result? (Choose all that apply.)

A  Compilation succeeds
B  Compilation fails due to an error on line 8
C  Compilation fails due to an error on line 10
D  Compilation fails due to an error on line 12
E  Compilation fails due to an error on line 14
<< First < Previous Flashcard Next > Last >>
Quiz Home Page
https://www.jobilize.com/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg

OCA(1z0-803_OCA1.7)MockExamPII

Author:

Access: Public Instant Grading

Ask
Yacoub Jayoghli
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg" 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>