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

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

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: 8803
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.)
It is sorta covered in the JavaRanch Style Guide.
subject: String Pool
Similar Threads
what is Stringpool and heap
String Pool
Is Kathy&Bert book wrong? Or my understanding wrong?
difference between poll memory and non-poll memory?
Reg. GC from JavaCaps