Prev Next

Java / Strings

String Interning.

The method of storing only one copy of each distinct string value, which must be immutable. The distinct values are stored in a string intern pool. string intern pool allows a runtime to save memory by preserving immutable strings in a pool so that areas of the application can reuse instances of common strings instead of creating multiple instances of it.

More Related questions...

Show more question and Answers...


Comments & Discussions