下面的五个选择中哪两个描述是正确的?(多选)
  A. static inner class requires a static initializer 
  B. A static inner class requires an instance of the enclosing class 
  C. A static inner class has no reference to an instance of the enclosing class 
  D. A static inner class has accesss to the non-static member of the other class 
  E. static members of a static inner class can be referenced using the class 
     name of the static inner class

解决方案 »

  1.   

    我猜是ced中的the other class指的是什么类?
      

  2.   

    要看哪个描述是正确的,首先要搞清楚这几个选项的意思
    A. 静态内部类需要一个静态构造器
    B. 静态内部类需要封装类的一个实例
    C. 静态内部类不需要引用封装类的实例
    D. 静态内部类可以访问其他类的非静态成员
    E. 静态内部类的静态成员可以用静态内部类的类名引用我觉得这个应该选C和E吧,仅供参考。