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 static variables 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 "static variables memory" Watch "static variables memory" New topic

static variables memory

raghu nagabandi
Ranch Hand

Joined: Aug 14, 2007
Posts: 35
where the memory is allocated for static variables and methods?
Mihai Fonoage
Ranch Hand

Joined: Feb 25, 2006
Posts: 39
Static variables are allocated in a fixed location in RAM called the "static storage" (not on the heap or on the stack).

I agree. Here's the link:
subject: static variables memory
It's not a secret anymore!