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