答案是c
static方法只能够访问static变量

解决方案 »

  1.   

    答案是c
    public static void fun() {
    }
    这个是实例方法,所以只能用实例变量。好像应该是这样的。
      

  2.   

    同意!静态方法只能访问静态变量和其它的静态方法.   since static methods don’t need any objects to be created before they are used, they cannot directly access non-static members or methods by simply calling those other members without referring to a named object (since non-static members and methods must be tied to a particular object).