A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
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?
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 ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014