阅读下面程序 class Test implements Runnable { public static void main(String[] args) { Test t=new Test(); t.start(): } public void run() {} } 下列关于上述程序的叙述正确的是
A.
程序不能通过编译,因为start()方法在Test类中没有定义
B.
程序编译通过,但运行时出错,提示start()方法没有定义
C.
程序不能通过编译,因为run()方法没有定义方法体
D.
程序编译通过,且运行正常
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】听力原文:M1: Jack, when you are done with the paper, can I read it? I need to check something in it. M2: Here, you can take it, Peter. I'm done with it. Oh, by the way, how is Carol working out in her new...
A.
Jack's promotion to a managerial position.
B.
How a co-worker is adjusting to a new position.
C.
What to do about one of the team members who is not doing a good job.
D.
Where to place a shy worker who is new to the company.