Java static nested class A static class is a class that is created inside a class, is called a static nested class in Java. It cannot access non-static data members and methods . It can be accessed by outer class name. It can access static data members of the outer class, including private.
Read moreCan a static class have an inner class?
Nested classes that are declared static are called static nested classes. A nested class is a member of its enclosing class. Non-static nested classes (inner classes) have access to other members of the enclosing class , even if they are declared private.
Read more