dcsimg
Why do we have two ways to use Threads in Java?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, May 27, 2004 10:13 PM

We can use Threads in Two ways, one is by extending Thread class and the another is by implementing Runnable interface. But this is not the case with Applets (the only way is to Extend the Applet class).

Even though Extending more than one class is not allowed in java, they could have provided the implementation of Runnable interface alone and why not they have provided two ways of using Threads?

Could anyone please clarify this?

Re: Why do we have two ways to use Threads in Java?

Posted By:   Anjani_Kalyan  
Posted On:   Friday, May 28, 2004 12:23 AM

See the answer to the prev. question. The whole funda is there.
About | Sitemap | Contact