Tagged: Java Interview

String Interning – What ,Why and When ?

What is String Interning  String Interning is a method of storing only one copy of each distinct String Value, which must be immutable. In Java String class has a public method intern() that returns a canonical representation for the string object....

%d