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 Difference Between sendRedirect and forward in a JSP ...

What are the Popular Implementations of Deque in Java ?

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

What is the Reason For Overriding equals Method in Java ?

How Can We Prevent Busy Waiting in Java ?