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