运行下列程序的结果是 ( ) abstract class MineBase { abstract void amethod(); static int i; } public class Mine extends MineBase { public static void main(String argv[]){ int[]ar=new int[5]; for(i=0;i<ar.length;i++) System.out.println(ar[i]);
A.打印5个0
B.编译出错,数组ar[]必须初始化
C.编译出错,Mine应声明为abstract
D.出现IndexOutOfBoundes的例外
第1题:
下列关于修饰符混用的说法,错误的是( )。
A.abstract不能与final并列修饰同一个类
B.abstract类中不可以有private的成员
C.abstract方法必须在abstract类中
D.static方法中能处理非static的属性
第2题:
38、下列关于修饰符混用的说法,错误的是
A.abstract不能与final并列修饰同一个类
B.abstract类中不可以有private的成员
C.abstract方法必须在abstract类中
D.static方法中能处理非static的属性
第3题:
abstract的method可以同时是static。
第4题:
第5题:
下列关于修饰符混用的说法,错误的是()
A.abstract不能与final同时使用修饰同一个类
B.abstract类中不可以有private的成员
C.abstract方法必须在abstract类中
D.非static方法中能处理static和非static的成员
第6题:
5、下列关于修饰符混用的说法,错误的是
A.abstract不能与final并列修饰同一个类
B.abstract类中不可以有private的成员
C.abstract方法必须在abstract类中
D.static方法中能处理非static的属性