↻
74번부터 같은 회차 100문항을 이어서 풉니다.
74/ 100문항 자료 불러오는 중
정처LAB 자체 제작 · 내용 검수 완료프로그래밍 언어 활용 · Java 예외 · 정처LAB 정보처리기사 필기 자체 제작 1회 · 74번
다음 Java 프로그램의 출력은?
public class Main {
static int f() {
int x = 1;
try {
x += 2;
throw new ArithmeticException();
} catch (ArithmeticException e) {
x *= 3;
return x;
} finally {
x += 4;
System.out.print(x + " " );
}
}
public static void main(String[] args) {
System.out.print(f());
}
}