WhichtwocodefragmentswillexecutethemethoddoStuff()inaseparatethread?()A.newThread(){publicvoidrun(){doStuff();}}B.newThread(){publicvoidstart(){doStuff();}}C.newThread(){publicvoidstart(){doStuff();}}.run();D.newThread(){publicvoidrun(){doStuff();}}.start

题目
WhichtwocodefragmentswillexecutethemethoddoStuff()inaseparatethread?()

A.newThread(){publicvoidrun(){doStuff();}}

B.newThread(){publicvoidstart(){doStuff();}}

C.newThread(){publicvoidstart(){doStuff();}}.run();

D.newThread(){publicvoidrun(){doStuff();}}.start();

E.newThread(newRunnable(){publicvoidrun(){doStuff();}}).run();

F.newThread(newRunnable(){publicvoidrun(){doStuff();}}).start();


相似考题