下列那一个包给出了Runnable接口的定义?()
A. java.util
B. java.io
C. java.lang
D. java.sql
线程生命周期中正确的状态是()
A. 新建状态、运行状态和终止状态
B. 新建状态、运行状态、阻塞状态和终止状态
C. 新建状态、可运行状态、运行状态、阻塞状态和终止状态
D. 新建状态、可运行状态、运行状态、恢复状态和终止
阅读下面编程题public class Test2 {public static void main(String args[]){Thread t=new test2();t.start();}public void run(){sysetem.out.println("How are you");}}在程序下画线处填入正确选项是 ()
A. implements Thread
B. extends Runnable
C. implements Runnable
D. extends Thread
阅读下面编程题public class Test implements Runnble{public static void main(String args[]){______________________________________;t.start();public void run(){sysetem.out.println("Hello");}}在程序下画线处填入正确选项是()
A. Test t=new Test()
B. Thread t=new Thread()
C. Thread t=new Thread(new Test() )
D. Test t=new Thread()