Can a class (whether an inner or outer class) be declared static?
In order to understand the use of the static keyword in class declaration, we need to understand the class declaration itself. You can declare two kinds of classes: top-level
classes and inner classes.