Inner classes and inner interfaces were introduced in JDK 1.1. An inner class (also referred to as a nested class) is a class that is defined as a member of another class or local to a statement block. Inner interfaces are less common than inner classes. They are defined as members of another class or interface.
Inner and Anonymous Classes Make sure that you understand how inner and anonymous classes are used. You will see several exam questions that cover inner and anonymous classes.
When an inner class is defined as a member of another class, it can have the access modifiers (public, protected, private, or package access). It can also be declared as abstract, final, or static. The access modifiers ...