wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Heap Memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Heap Memory" Watch "Heap Memory" New topic
Author

Heap Memory

Xing Xai Ma
Greenhorn

Joined: Sep 12, 2006
Posts: 4
Hello friends,

just want to make sure about the HEAP. There's only object that could be on the heap or class variable / static variables could be on the heap.

- thank you
John Stone
Ranch Hand

Joined: May 04, 2007
Posts: 332
AFAIK method local variables live on stack, any other variables are on heap.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Heap Memory