Blogger

Delete comment from: Java67

Anonymous said...

I am still confused about how many objects created when u create string using new operator.
as per me if I write String s = new String("ABC") then two objects are created
one in heap and one in String pool.
Please provide your feedback.

Jul 30, 2015, 5:03:42 AM


Posted to Difference between String literal and New String object in Java

Google apps
Main menu