下列哪个方法可用于创建一个可运行的类 A: publicclassXimplementsRunable{publicvoidrun(){......}} B: publicclassXimplementsThread{publicvoidrun(){......}} C: publicclassXimplementsThread{publicintrun(){......}} D: publicclassXimplementsRunable{protectedvoidrun(){......}}
下列哪个方法可用于创建一个可运行的类 A: publicclassXimplementsRunable{publicvoidrun(){......}} B: publicclassXimplementsThread{publicvoidrun(){......}} C: publicclassXimplementsThread{publicintrun(){......}} D: publicclassXimplementsRunable{protectedvoidrun(){......}}
下面哪些方法可用于创建一个可运行的多线程类?() A: publicclassTimplementsRunable{publicvoidrun(){…}} B: publicclassTextendsThread{publicvoidrun(){…}} C: publicclassTimplementsThread{publicvoidrun(){…}} D: publicclassTimplementsThread{publicintrun(){….}} E: publicclassTimplementsRunable{protectedvoidrun(){…}}
下面哪些方法可用于创建一个可运行的多线程类?() A: publicclassTimplementsRunable{publicvoidrun(){…}} B: publicclassTextendsThread{publicvoidrun(){…}} C: publicclassTimplementsThread{publicvoidrun(){…}} D: publicclassTimplementsThread{publicintrun(){….}} E: publicclassTimplementsRunable{protectedvoidrun(){…}}
1