In K&B P:420 it is given as
String s="abc";
String s=new String("abc");
And its said that these will create 2 objects and 1 reference
My Question is:
Since the two strings points to same content what is the need for creating two objects. Wont the string constant pool checks this.........
Thanks in Advance