A static nested class may be instantiated without instantiating its outer class. Inner classes can access both static and non-static members of the outer class . A static class can access only the static members of the outer class.
A static nested class may be instantiated without instantiating its outer class. Inner classes can access both static and non-static members of the outer class . A static class can access only the static members of the outer class.