• 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.
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!