单项选择题

如有下列代码: public class MyRunnable implements Runnable { public void run() { ...... } }下列那行代码可以创建并启动线程________。( ) A. new Runnable(MyRunnable).start(); B. new Thread(MyRunnable).run(); C. new Thread(new MyRunnable()).start(); D. new MyRunnable().start();

题目列表

你可能感兴趣的试题

判断题

Canadian constitution was adopted in 1982.

答案: 正确
微信扫码免费搜题