开放大学在线学习搜题
当前位置:首页 > 学习题库 > C语言程序设计

问题

.运行下列程序, 会产生什么结果( )

发布时间:2025-06-02   作者:广东开放大学   浏览:0

.运行下列程序, 会产生什么结果  ).public class X extends Thread implements Runable{

 public void run(){

  System.out.println("this is run()");

 }

 public static void main(String args[])

 {

  Thread t=new Thread(new X());

  t.start();

 }

}

A 第一行会产生编译错误

B 第六行会产生编译错误

C 第六行会产生运行错误

D 程序会运行和启动