当编译并运行下面程序时会发生什么结果() public class Bground extends Thread{ public static
已帮助 人
当编译并运行下面程序时会发生什么结果() public class Bground extends Thread{ public static void main(String argv[]){ Bground b = new Bground(); b.run(); } public void start(){ for (int i = 0; i <10; i++){ System.out.println("Value of i = " + i); } } }
A.编译错误,指明run方法没有定义
B.运行错误,指明run方法没有定义
C.编译通过并输出0到9
D.编译通过但无输出

回答
共1条回复-
编译通过,运行时出现异常。
