Benefits of a Static Class A static class can never be instantiated . Static classes can’t directly access non-static members of a class. It can interact with them only through an object reference.
Read moreWhat is a Java static 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.9 Şub 2018
Read more