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).
I agree. Here's the link:
subject: static variables memory
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014