当编译并运行下面程序时会发生什么结果() 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.编译通过但无输出

当编译并运行下面程序时会发生什么结果() public class Bground extends Thread{ public static

热搜:c语言源代码可以不经过编译而被计算机直接运行