dcsimg
Difference Between Thread and Runnable Interface
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   koti_reddy
Posted On:   Monday, April 30, 2007 04:35 AM


Difference Between Thread and Runnable Interface

Re: Difference Between Thread and Runnable Interface

Posted By:   Anand_Pasunoori  
Posted On:   Tuesday, June 12, 2007 10:54 AM

Thread is class Runnable is a interface

Re: Difference Between Thread and Runnable Interface

Posted By:   java_learner  
Posted On:   Monday, April 30, 2007 07:22 AM

Hi Koti Reddy,




See the below URL fore more information.



http://www.jguru.com/faq/view.jsp?EID=42423



Thanks,

Rajasekahr

Re: Difference Between Thread and Runnable Interface

Posted By:   Anonymous  
Posted On:   Monday, April 30, 2007 04:48 AM

Thread is a class and Runnable is an interface.

If you want to avail some more features other than Threading what i mean to say if you want to extend some other class go by implementing the Runnable interface and extend your required class still you can achieve the threading concept. Other wise just go for a Thread class.




extending a thread class you can have the facility of overriding the start method where as implmenting the Runnable interface will only give you option of implementing run method

meanse

if you need complete control over Thread extend the Thread class other wise you can choose Runnable interface
About | Sitemap | Contact