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 Differences Between Comparable and Comparator in Jav ...

What is the Lifecycle Stages of JSP ?

What is XMLBeanFactory in Spring Framework ?

Why Do We Use finalize Method in Java ?

When Will You Use Strategy Design Pattern in Java ?