global variable : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

global variable
Java does not support global, universally accessible variables. You can get the same sorts of effects with classes that have static variables, static {.. } style initialisation of static variables, or sometimes constants in the form of static final variables inside interfaces. Java avoids polluting the namespace by making you refer to such globals by preceding them with a class name, e.g. Math.PI, or MyClass.useCount, unless, of course, your class inherits or implements the class or interface that defines the global.

This page is posted
on the web at:

http://mindprod.com/jgloss/globalvariable.html

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

J:\mindprod\jgloss\globalvariable.html
Canadian Mind Products
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.

IP:[65.110.21.43]
Your face IP:[18.118.205.186]
You are visitor number