hello Sir
My question is "how many objects are made after String1 s="abc" and String2 s=new
String("abc");"
I have also read kaithy seira but I couldnt understand...
I know When the
compiler encounters a String literal, it checks the pool to see if an identical String
already exists. If a match is found, the reference to the new literal is directed to the
existing String, and no new String literal object is created.
Is it for only literals or for both when using new keword
I mean if i made a String using literal and new keyword with same string than how many objects are created.
thanks