This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes static variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "static variable" Watch "static variable" New topic
Author

static variable

deepak marathe
Greenhorn

Joined: Aug 24, 2007
Posts: 1
where is the static variable stored in the memory?
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
I think that it is stored in the Class (Class object) class instance for the class. Each class has a Class instance loaded into the JVM. This is used to create instances of the class.
 
Consider Paul's rocket mass heater.
 
subject: static variable