프로그래밍 언어 활용난도 중상
5번 · 주관식 · 5점
다음 Java 프로그램의 실행 결과를 쓰시오.
public class Main {
static void change(String[] words, String label) {
words[0] = label;
label = "Z";
}
public static void main(String[] args) {
String[] words = {"A"};
String label = "B";
change(words, label);
System.out.print(words[0] + label);
}
}