Java · Sub-topic
Core Java internals
Why the core language and library classes are designed the way they are.
-
GuideNew
Why Strings Are Immutable in Java
Inside java.lang.String: the final byte[], compact strings and the cached hash — and the five reasons immutability was chosen: the string pool, hash-based collections, security, thread safety and class loading.