Java String intern() Method Example
Java String intern() method returns the canonical representation of the string. When we invoke intern() method on a string, if the string pool already has a string having the same value, then the reference of that string is returned. Otherwise, a new string with the same value is created in the pool and its reference […]
Java String intern() Method Example Read More »