找考题网-背景图
多项选择题

Which two code fragments will execute the method doStuff() in a separate thread?()

A.new Thread() {public void run() { doStuff(); }};
B.new Thread() {public void start() { doStuff(); }};
C.new Thread() {public void start() { doStuff(); }}.run();
D.new Thread() {public void run() { doStuff(); }}.start();
E.new Thread(new Runnable() {public void run() { doStuff(); }}).start();

热门试题