File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "static variable" Watch "static variable" New topic

static variable

deepak marathe

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:
subject: static variable
It's not a secret anymore!