A global variable is a variable available in every scope. Java doesn't really support global variables (though a public static variable is as close as you'll get).
class variables are variables defined once for the class, i.e. :
Because they are static they are associated with the class rather than a particular object instance (i.e. every instance of Foo shares the same bar variable).
A local variable is a variable available in a limited scope. It differs from an instance variable, which is available to an instance of an object, because it is further limited by the scope of a block of code. Examples:
Make sense? [ August 30, 2007: Message edited by: Paul Sturrock ]