File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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: 8927

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

Bert Bates

Joined: Oct 14, 2002
Posts: 8898
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.)
I agree. Here's the link:
subject: String Pool
It's not a secret anymore!