프로그래밍 언어 활용난도 중상
9번 · 주관식 · 5점
다음 Java 프로그램의 출력값을 쓰시오.
public class Main {
static int value() {
int x = 2;
try {
x *= 3;
return x;
} finally {
x += 4;
System.out.print(x + " " );
}
}
public static void main(String[] args) {
System.out.print(value());
}
}