This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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!