aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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?
Stack & heap for Static methods
When will a variable use memory from stack and when will use memory from heap?
instance and static variables
where do static variables live ?