프로그래밍 언어 활용난도 중상
1번 · 주관식 · 5점
다음 Java 프로그램의 실행 결과를 쓰시오.
public class Main {
public static void main(String[] args) {
String a = new String("KOREA");
String b = new String("KOREA");
String c = a;
System.out.print(a == b ? "Y" : "N");
System.out.print(b == c ? "Y" : "N");
System.out.print(a == new String("KOREA") ? "Y" : "N");
}
}