A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
static variables memory
Joined: Aug 14, 2007
Jan 31, 2008 03:40:00
where the memory is allocated for static variables and methods?
Joined: Feb 25, 2006
Jan 31, 2008 15:36:00
Static variables are allocated in a fixed location in RAM called the "static storage" (not on the heap or on the stack).
It is sorta covered in the
JavaRanch Style Guide
subject: static variables memory
Stack & heap for Static methods
instance and static variables
where do static variables live ?
When will a variable use memory from stack and when will use memory from heap?
where do static variable live?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014