This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
First of all, you can't use "implements Thread". Thread is a class - if you want to inherit from it you use "extends". You may be getting it confused with Runnable, which is an interface.
Secondly, to answer your question: you don't. If you've created a Thread, or anything that inherits from Thread, you can just start it. If you've created a Runnable object, you have to pass that to a Thread. Since Thread implements Runnable, that means you can pass a Thread to another Thread - but just because you can doesn't mean you should.
Joined: Nov 10, 2008
Yeah ,have mistaken Runnable with Thread..
I created an instance of Class MyThread which Implements Runnable.
have written implementation in run().
Now if i want to start this thread, i can't because Runnable interface has only one method RUN().So to bring other methods of start and stopping a thread, i need to pass this object to Thread Class.