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 is a Filter in JSP ?

What are the Advantages of Multithreading in Java ?

What is Volatile Keyword in Java ?

How remove Method is Implemented in a HashMap in Java ?

Enumeration and Iterator, Which One Has Better Performance in Jav ...