File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Heap Memory" Watch "Heap Memory" New topic

Heap Memory

Xing Xai Ma

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.
I agree. Here's the link:
subject: Heap Memory
It's not a secret anymore!