
How to Use Java String Class intern() Method
Function Description It is a native method. It is used to intern the string object that is created by a new keyword. After interning the string, it will be checked and created in the String constant pool. Once a String object is interned, it will check in String Constant Pool in place of heap memory….