Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MyThread , Runnable Classes Which is Advantageous ?

 
Jesu Mani
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
List me the difference in the MyThread and the Runnable Classes and Which is advantageous?

A.Masilamani
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Above,

Both are the same but preferably, go for the Runnable bcos even after implementing Runnable, you still have the chance to extend your class.

Regards,
Jothi Shankar Kumar. S
 
JagadishBabu Penjuru
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in usage both are same ..but Runnable interface using is better than that of extending class...
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Masilamani Antony:
List me the difference in the MyThread and the Runnable Classes and Which is advantageous?

A.Masilamani


What do you mean "MyThread"? What do you mean "Runnable Class"? Runnable is an interface not a class.


[ October 18, 2006: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your questions in our Java In General (Beginner) forum... moving there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic