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 Different Scopes of a JSP Object ?

How Will You Create a Shallow Copy of a Map in Java ?

How Does Garbage Collection Work in Java ?

What is Hash Collision in Java ?

What are the Examples of Observer Design Pattern in JDK ?