is a local class a class that is defined in a method? is a nested class a class defined within an enclosing class? is a top level class not enclosed by a method or a class? public and package are the modifiers available to top level or local classes; public, package, protected and private are available to nested classes?
All correct, except that I don't think local classes do have access modifiers. Could be wrong, though...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Note that a local class doesn't have to be defined in a method block. A local class can be defined in any block. From The JLS
A local class is a nested class (�8) that is not a member of any class and that has a name. All local classes are inner classes (�8.1.2). Every local class declaration statement is immediately contained by a block. ... The scope of a local class declared in a block is the rest of the immediately enclosing block, including its own class declaration.
A local class cannot be preceded by an access modifier. Nothing declared in a block can. [ January 31, 2003: Message edited by: Dirk Schreckmann ]