¿¹Á¦

public static void main(String[] args){
String str = new String("Example"); //$NON-NLS-1$
System.out.println(str);
}


¼Ö·ç¼Ç
new¿¡ ´ëÇÑ È£ÃâÀ» Á¦°ÅÇϽʽÿÀ.
  1. String x = new String( value ) È£ÃâÀ» 'String x = value'·Î ¹Ù²Ù½Ê½Ã¿À.

public static void main(String[] args){
String str = "Example"; //$NON-NLS-1$
System.out.println(str);
}