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

creating a thread class  RSS feed

 
siva sankar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

what is the difference between creating a thread class by extending Thread and creating thread class by implementing Runnable interface.

Also tell me which is more advantageneous.


Thanks&Regards,
Siva Sankar Reddy.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That questions come sup frequently, so we have an FAQ page for it: ExtendingThreadVsImplementingRunnable
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!