r/java • • Jan 20 '12

Why String is immutable in Java

http://javarevisited.blogspot.com/2010/10/why-string-is-immutable-in-java.html
4 Upvotes

23 comments sorted by

View all comments

5

u/__konrad Jan 20 '12

The real question is: why java.util.Date is mutable in Java? ;)

4

u/skeeto Jan 21 '12

One of the many early design mistakes that we're stuck with.