In Chapters 2 through 4, we laid a foundation for learning the Java language. In Chapter 5, we will add to this foundation by introducing you to some of Java’s more advanced language features, specifically those features related to nested types, packages, static imports, and exceptions. Additional advanced language features are covered in Chapter 6.
Mastering Nested Types
Classes that are declared outside of any class are known as top-level classes . Java also supports nested classes, which ...