public static void main(String[] args) { /*byte b[] = new byte[1024*1024*50]; System.out.println(b);*/ String a = "这是字符串"; String b = a; a="这是另外一个"; System.out.println(b); }
打印结果:
这是字符串