• Post Reply Bookmark Topic Watch Topic
  • New Topic

Runnable and Thread

 
Rajesh Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are some of the differences i am aware of:
-Runnable is a interface, while Thread is a class
- By doing:
Your MyThread cannot be a subclass to any other class.
However by doing:
Your MyThread class can be subclass for any class and implement
other interfaces as well.
Is there any other differences?

Thanks in Advance,
Rajesh
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is asked constantly in this group. See, for example, this thread.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!