请教下以下语句的区别..
请教下以下语句的区别..
String a = "Java ";
String b = new String( "Java ");
------解决方案--------------------String reference variable a (in stack) -----> String "Java " in String Constant Pool
String reference variable b (in stack) -----> String Instance "Java " in Heap