What is the output of the following Java program?
public class Main {
static int f() {
try { return 1; }
finally { System.out.print("F"); }
}
public static void main(String[] args) {
System.out.print(f());
}
}- AF1
- B1
- C1F
- DF
Correct answer: A