Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

String is immutable for good reasons. It's explained in Joshua Bloch's Effective Java, which should be mandatory reading for all Java programmers.


Agreed. I cannot see anyone in this thread (blogpost or comments) that has argued for the opposite "string should be mutable".


Well, immutable classes are final. Thus, suggesting to make it abstract does suggest the opposite, IMHO.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: