Question 89 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 89 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given:

public class StrMan {
public static void dostuff (string s) {

try {
if 45

null) {
throw new NullPointerException ();
}
} finally {
system. out -printIn("-finally-”);
}
system. out .printIn(*-dostuf£—") ;
}
public static void main (String[] args) {
try {
dostufé (null);
} catch (NullPointerException npe) {
system. out-printIn("-catch-");

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.