News

When a string literal is created, the Java virtual machine checks the string pool to see if it already exists. The string constant pool is a memory area where strings are stored. If the value exists, ...