Forums Register Login

String pool

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Have a look at this excellent article.
+Pie Number of slices to send: Send
Thanks Roel De Nijs it was well explained
It's just a flesh wound! Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 377 times.
Similar Threads
How many String objects are created, Different authors different opinions ?
Where the object is created?
String Pool
Stings: how many objects created?
String
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:08:00.