[From javacoding.net mock exam] :
How many Strings are in the VM string-pool after executing this code fragment :
The answer is 2.
Could anybody explain this ?
I though that in the case above, only 1
string literal is store in the VM string-pool.
See El<br />SCJP2, SCWCD, IBM XML, SCBCD