Better Post : "implements Runnable" vs. "extends Thread"
I can create my own thread class MyThread two ways,
class MyThread extends Thread
or
class MyThread implements Runnable
Which technique is better and why?
And in case of implementing Runnable, I have to create Thread object from MyThread object, like
MyThread mt = new MyThread();
Thread t = new Thread(mt);
then what is the advantage of implementing Runnable Interface technique?