posted 20 years ago
Below is the terminology used for classes
Top Level
If a class is not nested, then it is a top level class.
Nested
Every class declared within the body of another class or interface is known as a nested class.
Member
If a nested class has a name and is not declared inside of a method, constructor or any block, then it is a member class.
Inner
If a member class is not static, then it is an inner class.
Local
If a nested class has a name and is declared inside of a method, constructor or any block, then it is a local class.
Anonymous
A nested class which does not have a name is an anonymous class. If a nested class does not have a name, then it can not be called a local class even if it is declared inside of a block. Therefore, an anonymous class is never called a local class.
Sheldon Fernandes