Problem Statement
What does G1 String Deduplication do?
Explanation
It identifies duplicate string contents and shares a single backing array, cutting memory footprint when many equal strings exist. It’s orthogonal to String.intern().
Practice Sets
This question appears in the following practice sets: