java专题(四)

1丶假设 A 类有如下定义,设 a 是 A 类的一个实例,下列语句调用哪个是错误的?( ) class  A{ static  int  i; String  s; static  void  method1() {   } void  method2()  {   } } A. System.out.println(a.i); B. a.method1(); C. A.method1(); D.
相关文章
相关标签/搜索