beginnerPremium
String Pool
Why identical strings can share one object
Unlock every Java skribble and video: one purchase, yours to keep.
$29 USD

String literals are interned in a pool. new String() always creates a separate heap object.
Watch
The narrated version of this skribble — tap play for the full-size video.
1:31
String Pool
Premium skribble
The preview above is intentionally blurred. Unlock the full-resolution skribble and its deep-dive board with TechSkribble.
Unlock this course Already purchased? Sign in



