Barclays interview question

Why is String immutable in Java?

Interview Answer

Anonymous

Feb 5, 2012

Since String is immutable it can safely shared between many threads ,which is very important for multithreaded programming and etc..

Barclays Interview Question: Why is String immutable in Java? | Glassdoor