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 Analyze the Dependencies in Java Classes and Packages ...

How Will You Implement a Thread Safe JSP Page ?

What is Information Hiding in Java ?

How Can We Prevent Busy Waiting in Java ?

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