• Post Reply Bookmark Topic Watch Topic
  • New Topic

String pool  RSS feed

 
Nivs Solanki
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roel De Nijs
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this excellent article.
 
Nivs Solanki
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roel De Nijs it was well explained
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!