This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes String constant pool and heap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

String constant pool and heap

Charles Chikito
Ranch Hand

Joined: May 22, 2009
Posts: 76
The following examples are from Kathy's book



Does JVM sets the String constant pool within the heap or separately?

Which one does the ref var refers to in the 2nd example? The String object in the heap?

Tq
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Please don't duplicate threads. Continue the discussion there.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://kickstarter.com/rocket-mass-heater
 
subject: String constant pool and heap