For instance
String s = \"Hello\" + \" World\";
I know there are two strings in the pool \"Hello\" and \"World\" but, does: \"Hello World\
If I am wrong please correct me. As per my understanding only one object is going to be created in SCP. As String s = "Hello" + " World"; is a compile time constant.So compiler will append these two strings at compile time only.And only one object will be created in SCP. If you open and see .class file you will find "HelloWorld in .class file