jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes String Constant Pool - Help Needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "String Constant Pool - Help Needed" Watch "String Constant Pool - Help Needed" New topic

String Constant Pool - Help Needed

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
Where exactly is the string constant pool is created. Indside the heap or some memory in RAM. What does it contains ? Objects??? but Objects are always created on heap.

In Kathy's book : Chapter 6 Page ; 415,416,418 :

String s = "abc"; // Now the object "abc" gets created on heap...???What about String Pool in this case???
Rajesh Kadle

Joined: Sep 06, 2004
Posts: 26
This URL will answer your question.

String Literl Pool will be created on HEAP

Chandrasekar T

Joined: Sep 28, 2006
Posts: 3
String Constant Pool is a part of heap which holds only the objects of String class.
Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
I agree. Here's the link: http://aspose.com/file-tools
subject: String Constant Pool - Help Needed
Similar Threads
A question from Whizlab
How many objects created?
String Methods
Confusion in String Constant Pool
String Object and GC