Hi everyone,
Can anyone help me on string pool i am stuck in that for e.g if I am creating String a = new String("abc"); and String b="abc"; then how many objects will be created and what does String's intern() method do
Thanks in advance
Can anyone help me on string pool i am stuck in that for e.g if I am creating String a = new String("abc"); and String b="abc"; then how many objects will be created and what does String's intern() method do
Thanks in advance