• Post Reply Bookmark Topic Watch Topic
  • New Topic

whats the diff bet using extending the thread and implementing the thread  RSS feed

 
Matt Swaggi
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone help me with a good example
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot implement a thread. What you probably mean is "What is the difference between extending class Thread and implementing class Runnable".

This is a frequently asked question, see Extending Thread Vs Implementing Runnable in the JavaRanch FAQ.

Some posts in which this has been discussed:

Thread vs Runnable
Difference b/w extending Thread and implementing an interface
 
Matt Swaggi
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you my friend ! i will come back with you in a short while if i
have doubt !
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!