单项选择题

当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是______。

A.SomeThread类是包含run()方法的任意Java类
B.SomeThread类一定要实现Runnable接口
C.SomeThread类是Thread类的子类
D.SomeThread类是Thread类的子类并且要实现Runnable接口
题目列表

你可能感兴趣的试题

微信扫码免费搜题