16. 아래 코드에서 출력되는 값을 작성하시오.
public class Main {
public static void main(String[] args) {
int sum = 0;
try {
func();
} catch(NullPointerException e) {
sum = sum + 1;
} catch(Exception e) {
sum = sum + 10;
} finally {
sum = sum + 100;
}
System.out.print(sum);
}
static void func() throws Exception {
throw new NullPointerException();
}
}
| 정답 확인 | 맞췄어요 O | 틀렸어요 X |