import java.io.*;
public class Tester {
public static void main(String[] args) {
try {
doA();
doB();
} catch (IOException e) {
System.out.print("c");
return;
} finally {
System.out.print("d");
// 注意:原文中的 '|' 应该是误写,这里忽略不翻译
}
System.out.print("f");
}
private static void doA() {
System.out.print("a");
if (false) {
throw new IndexOutOfBoundsException();
}
}
private static void doB() throws FileNotFoundException {
System.out.print("b");
if (true) {
throw new FileNotFoundException();
}
}
}