Static member classes for Java:
1, static member class is the simplest nested class. It is better to think of it as an ordinary class, just happen to be declared inside another class, and it can access the members of the perimeter class, including those declared as private.
2. A static member class is a member of a perimeter class that, like other static members, adheres to the same accessibility rules, and if it is declared private, it can only be accessed within the perimeter class.
3. If an instance of a nested class wants to exist independently of an instance of a perimeter class, the nested class must be a static member class: It is not possible to create a non-static instance of a member class without a perimeter instance.
4. A common use of static member classes is as a public auxiliary class.
Static member classes for Java