• 2022-06-17
    下列哪个方法可用于创建一个可运行的类X?
    A: public class X implements Runnable{ 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 extends Runnable{ public void run(){......} }
  • 举一反三