Are strings created with + concatenation stored in the string pool?
- by Support - multilanguage SO
For instance
String s = "Hello" + " World";
I know there are two strings in the pool "Hello" and "World" but, does: "Hello World" go into the string pool?
If so, what about?
String s2 = new String("Hola") + new String(" Mundo");
How many strings are there in the pool in each case?