内部类嵌套

 1  public class XZ
 2  {
 3      static class b
 4      {
 5             public static void main(String[] args) {
 6                 // TODO Auto-generated method stub
 7                 System.out.println("test");
 8             }
 9      }
10  }

这种写法也是正确的

原文地址:https://www.cnblogs.com/friends-wf/p/3581245.html