Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String Pool

 
Priya Jotwani
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
How can I retrieve the contents of the String constant pool ?
Thanks in Advance,
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot! The JVM will handle the creation of the pool . You need not worry about the creation.
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's also a really minor part of the exam. I wouldn't spend too much time studying the String pool until I was absolutely ace-ing: threads, inner classes, and GC on all the mocks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic