aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "String Constant Pool - Help Needed" Watch "String Constant Pool - Help Needed" New topic
Author

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
Greenhorn

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

String Literl Pool will be created on HEAP


-Raj
Chandrasekar T
Greenhorn

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
Thanks...
 
 
subject: String Constant Pool - Help Needed