I understand the interning and StringPool concepts. But I fail to understand how a String literal is converted to String object. For e.g.
String abc = "abc";
The above line will create an String object. How does this shortcut work (in java)?
I understand the interning and StringPool concepts. But I fail to understand how a String literal is converted to String object. For e.g.
String abc = "abc";
The above line will create an String object. How does this shortcut work (in java)?