Hi,
I happened to read the journal by Corey written in 2004 -
http://www.javaranch.com/journal/200409/Journal200409.jsp#a1
Was happy to know few things... though...
Why is it required for
String objects to have references from two locations, when they are created as string literals?
For eg...
String a = "Ram";
"Ram" object is referred from the local variable table and from the string literal pool (constant table)
String a = new String("Ram");
In this case, "Ram" object is referred only from local variable table
What is the reason for such a design?
Any ideas please.....!!!
Regards,
Sriraam