String interning
data structure for reusing strings

In computer science, string interning is a method of storing only one copy of each distinct string value, which must be immutable. Interning strings makes some string processing tasks more time-efficient or space-efficient at the cost of using more time when the string is created or interned. The distinct values are stored in a string intern pool.
The one copy of each string is called its intern and is typically looked up by a method of the string class, for example String.intern() in Java. All compile time constant strings in Java are automatically interned using this method.
String interning is supported by some modern object-oriented programming languages, including Java, Python, PHP (since 5.4), Lua
and .NET languages. Lisp, Scheme, Julia, Ruby and Smalltalk are among the languages with a symbol type that are basically interned strings. The library of the Standard ML of New Jersey contains an atom type that does the same thing. Objective-C selectors, which are mainly used as method names, are interned strings.
Objects other than strings can be interned.
The public source identifies “String interning” as data structure for reusing strings. This brief keeps that definition visible, then builds a research path around String, interning and data.
Why this record matters
A short description can identify a subject without explaining its stakes. For “String interning”, the useful work is to connect “data structure for reusing strings” to the records capable of establishing context and consequence.
The citation trail is more important than the brevity of the summary: it shows where individual claims can be examined in context. The source revision retrieved here is dated Aug 9, 2026. The linked authority identifier is Q4383552. None of the 0 selected statements returned an explicit reference.
Overview language is designed for orientation and should not be treated as a substitute for the evidence cited beneath it. The lead is largely declarative, so disagreement and counter-evidence require a deliberate search beyond the opening account. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.
How to read it
Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.
- Subject orientation
- Search vocabulary
- Locating named sources
The closest primary source, responsible institution and strongest cited specialist reference.
Three-step research path
- Establish the record: confirm the title “String interning”, its source revision and the description used here.
- Expand the search: follow String interning primary sources, String interning archive and String research across catalogues and specialist indexes.
- Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.
Questions for further research
- Which source most directly establishes the central claim about “String interning”?
- What terminology or title could unlock a more precise catalogue search?
- Which institution is responsible for the underlying evidence?
Search terms from this dossier
This entry incorporates text from “String interning” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.