62,623
社区成员
发帖
与我相关
我的任务
分享
classs MyClass implements Runnable
{
public void run() {}
}
class Test {
public static void main(String[] args)
{
Thread t1 =new Thread();//1
Thread t2 =new Thread(new MyClass());//2
Thread t3 =new Thread(new MyClass(),"Thread3");//3
Thread t4 =new Thread("Thread4");//4
Thread t5 =new Thread("Thread5",5);//5
Thread t6 =new Thread("Thread6",new Myclass());//6
}