instance variable : Java Glossary


instance variable
a variable, part of an Object. These might better be called perObject variables since each instantiated object of this class will have its own private copy of this variable. They are allocated when the object is allocated via new.

Static methods may not access the instance variables of their class (or any other class for that matter), other than via some object reference, e.g. anObject.someField. Static methods may even access private instance variables in their class via some object reference.

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
Your face IP:[]
You are visitor number