• Post Reply Bookmark Topic Watch Topic
  • New Topic

which is better:Runnable interface or Thread class  RSS feed

 
deepak carter
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

can you let me know the advantages or disadvantage of using Runnable interface or Thread class.

One i can figure out is when we are implementing a interface then we can extend other class which is not possible when we extend Thread class.
 
Ulf Dittmer
Rancher
Posts: 42972
73
 
Mohamed Sanaulla
Bartender
Posts: 3174
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also there are lot of discussions about this in the forum before.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!