Oracle Java SE 21 Developer Professional 1z0-830 Question # 15 Topic 2 Discussion

Oracle Java SE 21 Developer Professional 1z0-830 Question # 15 Topic 2 Discussion

1z0-830 Exam Topic 2 Question 15 Discussion:
Question #: 15
Topic #: 2

Given:

java

public static void main(String[] args) {

try {

throw new IOException();

} catch (IOException e) {

throw new RuntimeException();

} finally {

throw new ArithmeticException();

}

}

What is the output?


A.

Compilation fails


B.

IOException


C.

RuntimeException


D.

ArithmeticException


Get Premium 1z0-830 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.