class ThreadTest
{
public static void main(String[] args)
{
Thread t1=new Thread(new Runnable()
{
public void run()
{
System.out.println("RunnableRUN().........run!");
}
})
{
public void run()
{
System.out.println("ThreadRUN().........run!");
}
};
t1.start();
}
}
运行结果为什么是Thread类中的run方法(ThreadRUN().........run!),
而不是Runbale接口中的run方法??
|
|