Home Forums Job & Work Life 자바 초급 질문 드려요 자바 초급 질문 드려요 Name * Password * Email Is String a primitive type? https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html String a = "string"; String b = "string"; String c = new String("string"); String d = new String("string"); System.out.println((a==b) + ", " + (c==d) + ", " + (b==c)); // --> true, false, false. 위의 stackoverflow에 설명되어 있네요. I agree to the terms of service Comment