선언 및 초기화자바에서 문자열 객체를 생성할 때String str = "string";String str = "";위와 같이 텍스트를 쌍따옴표로 감싸서 초기화하는 경우가 많습니다.해당 방법이 메모리를 아낄수 있어서 많이 사용됩니다. 그 외에 String객체를 생성하는 여러 방법들이 존재합니다. 생성자 사용import java.nio.charset.Charset;public class StringConstructor { public static void main(String[] args) throws Exception { //빈문자열 String s = new String(); System.out.println("1. new String() : " + s + "***"); //String(byt..