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 Will You Use Other Java Files of Your Application in JSP Code ...

What is a Filter in JSP ?

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

How Can We Find the Memory Usage of JVM From Java Code ?

Why Collection Interface Doesn’t Extend Cloneable and Serializabl ...