Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

which is better:Runnable interface or Thread class  RSS feed

 
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.
 
Rancher
Posts: 42975
76
 
Bartender
Posts: 3185
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!