+ 1
Does the String variables str1 and str2 share the same memory address?
String str1, str2, str3; str1="hallo" ; str2="Gold" ; str3=str1;
3 Answers
+ 1
Seems <str1> share the same reference with <str3>.
0
No its not. Question is about str1 & str2
String str1, str2, str3; str1="hallo" ; str2="Gold" ; str3=str1;