• 2022-06-09
    class X implements Runnable{public static void main(String args[]){/* Missing code? */}public void run() {}}哪一行代码适合启动线程?
    A: Thread t = new Thread(X);
    B: Thread t = new Thread(X);t.start();
    C: X run = new X();Thread t = new Thread(run);t.start();
    D: Thread t = new Thread();x.run();