wood burning stoves 2.0*
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
Author

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).

Mihai
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: static variables memory
 
Similar Threads
where do static variable live?
where do static variables live ?
instance and static variables
When will a variable use memory from stack and when will use memory from heap?
Stack & heap for Static methods