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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: static variables memory
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?
where do static variables live ?
instance and static variables
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013