wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes String Pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "String Pool" Watch "String Pool" New topic
Author

String Pool

Priya Jotwani
Ranch Hand

Joined: Oct 30, 2002
Posts: 53
Hi All,
How can I retrieve the contents of the String constant pool ?
Thanks in Advance,
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

You cannot! The JVM will handle the creation of the pool . You need not worry about the creation.


Groovy
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8815
    
    5
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!


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
 
GeeCON Prague 2014
 
subject: String Pool