中国石油大学 / 中石油
正确率:100%
13. 下列哪个方法可用于创建一个可运行的类
A、public class X implements Runable{ public void run(){......} }
B、public class X implements Thread{ public void run(){......} }
C、public class X implements Thread{ public int run(){......} }
D、public class X implements Runable{ protected void run(){......} }
A、public class X implements Runable{ public void run(){......} }
B、public class X implements Thread{ public void run(){......} }
C、public class X implements Thread{ public int run(){......} }
D、public class X implements Runable{ protected void run(){......} }
参考答案:
佳题速递: