Hi,
I am on chapter-6 pg.434. Here is a way to create strings.
In K_&B, it is written that as we have used new keyword,
Java will create a new
String object in normal(nonpool) memory and s will
s will refer to it. In addition, literal 'abc' will be placed in the pool. I have a question, as two objects are created, but both of them refer
to same literal abc. Is that correct?
Arhaan