Jan 20, 2015Understanding the Java String.intern() Memory ModelCalling string.intern() in Java first looks up the corresponding string in the string constant pool; if it doesn't exist, the string is created in the pool and then returned.