Consider the following example :
String s1 "Hello";
String s2 = "World";
String s3 = s2 +s3;
In the above example how many objects are created in Stringpool? Is string s3 added to Stringpool or it is separate object in Heap memory or does JVM creates new object in heap and add it to stringpool as well? Thanks in advance :)