class Ex extends Exception {}
public class ExcerciseCh9_6_1 {
public static void main(String[] args) {
System.out.println("Entering first try block");
try {
System.out.println("Entering second try block");
try{
throw new Ex();
} finally {
System.out.println("Caught Ex in first try block");
}
} catch(Ex e) {
System.out.println("Caught Ex in first try block");
} finally {
System.out.println("finally in 1st try block");
}
}
}
책에 있는거 그대로 썼는데, 계속해서 에러가 나더라고요 -_- 아무리 고쳐도 계속 에러가 나고..