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

Can We Use Thread.sleep Method For Real-time Processing in Java ?

How Multi-threading Works in Java ?

How Stack and Heap Work in Java Multi-threading Environment ?

What is Difference Between Include Directive and Include Action o ...

What is Volatile Keyword in Java ?