String hello = "Hello";
String world = " World!";
String bye = "Bye";
String greeting = hello + world;
String goodbye = bye + world;
I know with the first three that there's a new object created in the java String pool, but with the last two i'm not sure.
Are there just references to both string pool objects in the greeting and goodbye variables, or are there 2 new String objects created?