class Teste {
public static void main
(String[] args
) { func1();
}
public static void func1() {
try {
func2();
System.
out.
println("Error 1"); }
}
public static void func2() {
try {
int x = 1 / 0;
System.
out.
println("Error 2"); throw e;
}
}
}
Y2xhc3MgVGVzdGUgewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIGZ1bmMxKCk7CiAgICB9CgogICAgcHVibGljIHN0YXRpYyB2b2lkIGZ1bmMxKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGZ1bmMyKCk7CiAgICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uIGUpIHsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJFcnJvciAxIik7CiAgICAgICAgIH0KICAgIH0KCiAgICBwdWJsaWMgc3RhdGljIHZvaWQgZnVuYzIoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgaW50IHggPSAxIC8gMDsKICAgICAgICB9IGNhdGNoIChFeGNlcHRpb24gZSkgewogICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIkVycm9yIDIiKTsKICAgICAgICAgICAgdGhyb3cgZTsKICAgICAgIH0KICAgIH0KfQ==