I have one String literal which refers to a string pool reference
String s1 = "abc";
Suppose i create/assign a new String literal like:
String s2 = s1 + "pqr";
Which of the following will happen?
- change contain of existing string pool object.
- create new object in string pool and assign to
s2
, if yes then what is the size ofs2
;