Answer
Intern pool stores unique string instances for process lifetime.
Benefits: deduplication of literals. Harmful: unbounded memory use if interning user input.
Intern pool stores unique string instances for process lifetime.
Benefits: deduplication of literals. Harmful: unbounded memory use if interning user input.
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ