When should we use intern method of String on String literals
According to String#intern(), intern method is supposed to return the String from the String pool if the String is found in String pool, … Read more
According to String#intern(), intern method is supposed to return the String from the String pool if the String is found in String pool, … Read more
What is String Interning in Java, when I should use it, and why? 8 Answers 8
http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#intern() Basically doing String.intern() on a series of strings will ensure that all strings having same contents share same memory. So if you … Read more