The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search

Trail: JDK(TM) 1.1 -- And Beyond!
Lesson: What's New in 1.1?

Inner Classes

Previous releases of the Java language required that all classes be top-level classes--classes declared as members of a package. The JDK 1.1 release removes this restriction and now allows classes to be declared in any scope. Classes declared inside other classes are called nested classes, and one common type of nested class is called an inner class.

Where to Find Documentation


Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search