Suppose we initialize String s1=“Hello”; and String s2=“H”;.
Now if we execute the statement {s2=s2+“ello”;}, then will both s1 and s2 have same address?
Suppose we initialize String s1=“Hello”; and String s2=“H”;.
Now if we execute the statement {s2=s2+“ello”;}, then will both s1 and s2 have same address?