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 a Checked and Unchecked Exceptio ...

What is the Advantage of Using Unicode Characters in Java ?

What is the Difference Between Sleep and Wait Methods in Java ?

What is the Purpose of Thread Groups in Java ?

How Will You Include a Static File in a JSP Page ?