Consider the following code snippet String s1="Hello"; String s2=s1; s1.concat("World"); System.out.println(s1+"---"+s2); What is the output??
Reveal answer
Fill a bubble to check yourself
Consider the following code snippet String s1="Hello"; String s2=s1; s1.concat("World"); System.out.println(s1+"---"+s2); What is the output??