• 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: 42972
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!