Java · Sub-topic

Core Java internals

Why the core language and library classes are designed the way they are.

  1. 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.

    ~31 min read · Beginner → Intermediate · 8 diagrams

More in Java