A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Aug 24, 2007
Aug 24, 2007 11:14:00
where is the static variable stored in the memory?
Joined: Apr 20, 2002
Aug 24, 2007 11:23:00
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.
I agree. Here's the link:
subject: static variable
Dont declare global variables in Servlet
about protected n static
Best Practice for getters and setters
Fix an infity loop
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015