0 votes
by (1.6k points)

1 Answer

0 votes
by (524 points)
selected by
 
Best answer
Because Java uses the String literals. If one reference of an object changes then all other references will be affected. This is why string is immutable in java.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...