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

How Does Web Module Work in Spring Framework ?

What is the Difference Between a Set and a Map in Java ?

How Will You Sort Objects by Natural Order in a Java List ?

What is a Singleton Class in Java ?

What is Information Hiding in Java ?