Question PRG-JAVA-0017
HardWhat is the output of this program?
public class Main {
static void f() {
try {
System.out.print("try ");
return;
} finally {
System.out.print("finally");
}
}
public static void main(String[] args) {
f();
}
}
- A.
finally
- B.
try finally
- C.
Sign up free to see the answer and a step-by-step explanation.