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 Can We Prevent a Deadlock in Java ?

How Will You Implement a Thread Safe JSP Page ?

What are the Differences Between a Vector and an ArrayList in Jav ...

What are the Main Benefits of Collections Framework in Java ?

What is the Difference Between Fail-fast and Fail-safe Iterator i ...