String String은 int나 char 기본(Primitive type) 자료형과 근본적으로 다르다 String은 Wrapper class에 속한 객체며 참조형(Reference Type)이다 String 데이터 생성하기 Wrapper class의 데이터 생성에는 2가지 방법이 있다 1. 리터럴 생성 public class Main { public static void main(String[] args) { String s = "문자열"; System.out.println(s); //"문자열" 출력 } } 2. new 연산자 이용 public class Main { public static void main(String[] args) { String s = new String("문자열"); S..