What is a static inner class?

A static inner class is a nested class which is a static member of the outer class . It can be accessed without instantiating the outer class, using other static members. Just like static members, a static nested class does not have access to the instance variables and methods of the outer class.

Read more

Is a local class an inner class?

Local classes are similar to inner classes because they cannot define or declare any static members . Local classes in static methods, such as the class PhoneNumber , which is defined in the static method validatePhoneNumber , can only refer to static members of the enclosing class.

Read more