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 are the Lifecycle Methods of a JSP ?

What are the Uses of Reflection in Java ?

When Will You Use Strategy Design Pattern in Java ?

What are the Examples of Observer Design Pattern in JDK ?

How Will You Use a Cookie in JSP ?