Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String Pool.....?

 
santhosh.R gowda
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends

Can you please tell me that how string pool works in java...?
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi santhosh,

Just read Strings,Literally here at ranch. If you have any doubts just post it here at the forum.
 
santhosh.R gowda
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Vijitha Kumara for giving link to string literals


Kindky tell me how memory allocation happens in collections how it grows,default size (ArrayList, LinkedList,Map, vector)
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
santhosh.R gowda wrote:Kindky tell me how memory allocation happens in collections how it grows,default size (ArrayList, LinkedList,Map, vector)


You should read Sun's Collection Tutorial about collections. But this is far away from what the topic of this post says.
 
Gavin Tranter
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surely memory allocation is defined by the JVM implementation, and thus can not be relied upon to be consistant from JVM to JVM?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic