File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
Threads and Synchronization
Extending Thread over Implementing Runnable
Joined: May 15, 2009
Aug 16, 2010 12:50:38
What are the advantages of extending thread class over implementing runnable interface? If there are no advantages then why there is a thread class?
Joined: Mar 17, 2010
Aug 16, 2010 14:06:21
both are same as thread class itself implements the runnable interface.
you can choose any one from them.but extending a class will always consider a bad programming practice
Ranchers from Delhi
Joined: Oct 14, 2008
Aug 16, 2010 15:11:56
subject: Extending Thread over Implementing Runnable
Runnable Interface VS Thread Class
best way to create a thread
Extending Thread or implementing Runnable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015