9-4多线程小练习
9-4 多线程小练习
练习1:以下程序运行时,共产生了几个线程对象class MyThreadol extends Thread[public void runO{System.out.println("hello") ;
练习1:以下程序运行时,共产生了几个线程对象 class MyThread01 extends Thread{ public void run(){ System.out.println("hello"); } }
练习1:以下程序运行时,共产生了几个线程对象public class Test (public static void main(Stringll args)YMyThreado1 tol = new MyThreado1O:t01. start(;?
public class Test { public static void main(String[] args) { MyThread01 t01 = new MyThread01(); t01.start(); } } 练习1:以下程序运行时,共产生了几个线程对象