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 Does hashCode Method Work in Java ?

Why Do We Use JSP Instead of Servlet in Java ?

What are the Java Collection Classes That Implement List Interfac ...

What is the Difference Between Expression and Scriptlet in JSP ?

What is the Importance of hashCode and equals Methods in Java ?