This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: static variable
 
Similar Threads
about protected n static
Fix an infity loop
Best Practice for getters and setters
Dont declare global variables in Servlet
Static variable