关于下列代码编译或执行结果的描述中,正确的是______。 public class Test public static void main(String args[]) TcstThread pml=new TestThread( One ) pm1. start() TestThread pro2=new TestThread( Two ) pro2. start() class TestThread extends Thread( private String sTname= ; TestThread(String s) sTname=s; public void run() for(int i=0; i<2; i++) try sleep (1000); catch (InterruptedException e) system. out. print (sTname+ );
A.不能通过编译,TestThread类中不能定义变量和构造方法
B.输出One One TWO TWO
C.输出TWO One One Two
D.选项B或C都有可能出现