I\'ve been studying Java String for a while. The following questions are based on the below posts
Java String is special Immutability of String in java
String A = "Test" String B = "Test"
Now String B called"Test".toUpperCase()which change the same object into"TEST", soAwill also be"TEST"` which is not desirable.
B called
which change the same object into
, so
will also be