Imagine IT,Think IT,Done IT
Imagine IT,Think IT,Done IT.
What Is a Nested Class?
Generally speaking, a nested class is a member of another class. However, it is common to speak of the static members as nested and the nested classes that are members of instances of the enclosing class as inner classes. Indeed, you are most likely to read about inner classes only, but the more general term is nested classes.
Brogden and Green, Exam Cram Java 2 Programmer, p.88
Extracted from JLS 14.3:
A local class is a nested class that is not a member of any class and that has a name.