What is String Interning in Java ?

String interning refers to the concept of using only one copy of a distinct String value that is Immutable.

It provides the advantage of making String processing efficient in Time as well as Space complexity. But it introduces extra time in creation of String.



You May Interest

What is the Reason to Organize Classes and Interfaces in a Packag ...

What are the Advantages of Multithreading in Java ?

How Can You Determine If Your Program Has a Deadlock in Java ?

How Will You Make an Object Immutable in Java ?

Why Collection Interface Doesn’t Extend Cloneable and Serializabl ...