global variable : Java Glossary


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:

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.

Your face IP:[]
You are visitor number