static vs instance : Java Glossary

static vs instance
You can make your variables or methods either static or instance. If a variable is static, there is only one copy for the entire class, shared by all objects of that class. If a variable is instance (i.e not static) then there is one copy per object of that class. Unlike variables, code is never duplicated, whether the methods are instance or static. It is always shared by all objects of that class. static methods only have access to static variables and methods of the class. Instance methods have access to both static and instance variables and methods.

available on the web at:

http://mindprod.com/jgloss/staticvsinstance.html
ClustrMaps is down

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\staticvsinstance.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy.
Blog
IP:[65.110.21.43]
Your face IP:[54.205.59.78]
You are visitor number 1.