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.
Read moreWhy do we make inner class static in Java?
Static Nested Class : can’t access enclosing class instance and invoke methods on it, so should be used when the nested class doesn’t require access to an instance of the enclosing class . A common use of static nested class is to implement a components of the outer object .15 Kas 2011
Read moreWhat is the advantage of static inner class?
The advantage of a static nested class is that it doesn’t need an object of the containing class to work . This can help you to reduce the number of objects your application creates at runtime. It’s called a nested class. All nested classes are implicitly static; if they are not static they are called inner classes.
Read more