READ Free Dumps For Oracle- 1z0-851
Question ID 3760 | Click the Exhibit button. Given: |
Option A | A. Line 33 must be called within a try block. |
Option B | B. The exception thrown by method1 in class A is not required to be caught. |
Option C | C. The method declared on line 31 must be declared to throw a RuntimeException. |
Option D | D. On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch |
Correct Answer | B |
Question ID 3761 | Given: |
Option A | A. The value "4" is printed at the command line. |
Option B | B. Compilation fails because of an error in line 5. |
Option C | C. Compilation fails because of an error in line 9. |
Option D | D. A NullPointerException occurs at runtime. |
Option E | E. A NumberFormatException occurs at runtime. |
Option F | F. An IllegalStateException occurs at runtime. |
Correct Answer | D |