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

Comparing HashSet and TreeSet Collections in Java

What is the Difference Between pass by reference and pass by valu ...

What are the Popular Implementations of Deque in Java ?

What are the Disadvantages of Multithreading in Java ?

Why Do We Use JSP Instead of Servlet in Java ?