Sorry,
I missed the void run() method and they should be separated.
Here is what I ask:
public class MyClass
{
public static void main(String [] args)
{
//MyClass.MyRunnable mr = new MyClass().new MyRunnable();
//new Thread(mr).start();
(new Thread(new MyClass().new MyRunnable())).start(); //I want to know whether they are the same.
}
public class MyRunnable implements Runnable
{
public void run(){}
}
}
Thanks for your kind help.

Andrew