Variations of Inner Classes
In this series following combinations are discussed. 1. Java Nested Classes 2. Static Nested Classes 3. Nested Interfaces 4. Interface inside Interface 5. Nested Interface within Class 6. Class inside Interface
In this series following combinations are discussed. 1. Java Nested Classes 2. Static Nested Classes 3. Nested Interfaces 4. Interface inside Interface 5. Nested Interface within Class 6. Class inside Interface
Restriction on Static Nested Classes static keyword can be applied on classes and interfaces only when they are nested. Top-level classes and interfaces cannot be static. This is the second variation of the total six discussed in this series. Note: It is advised to read the basics and types of inner classes before proceeding further. …