Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java thread help  RSS feed

 
raja ramesh
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is tha main advantage of implementing runnable interface than extending a thread class ?
 
sarvesh meens
Ranch Hand
Posts: 43
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to Extending thread Vs Implementing Runnable @ FAQ
 
pradeep jaladi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the main difference is If you implement Runnable you can extend your own class or any API class. Both thread and runnable do the same work.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!