ExamQuestions.com

Register
Login
Java SE 8 Programmer Exam Questions

Oracle

Java SE 8 Programmer

45 / 76

Question 45:

Given the code fragment: 
image
What is the result? 

Answer options:

A. Execution terminates in the first catch statement, and caught a RuntimeException is printed to the console.
B. Execution terminates in the second catch statement, and caught an Exception is printed to the console.
C. A runtime error is thrown in the thread "main".
D. Execution completes normally, and Ready to use is printed to the console.
E. The code fails to compile because a throws keyword is required.