静态内部类(嵌套类)的对象除了没有对生成它的外部类对象的引用特权外,与其他所有内部类完全一样。
在内部类不需要访问外部类时,应该使用静态内部类(嵌套类)。
与常规内部类不同的是,静态内部类可以拥有静态域和方法。
在接口中声明的内部类自动成为static和public类。
static
public