File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Mathews P Srampikal
Joined: Nov 26, 2002
Oct 16, 2003 23:41:00
What is the difference between implementing runnable interface and Extending a Thread in Multithreading.what are the advantages and disadvantages.
Joined: Aug 29, 2003
Oct 17, 2003 06:51:00
When u r extending a Thread u wont be able to extend any other class.
This is the biggest drawback with extending the Thread, what I feel.
I agree. Here's the link:
Runnable Interface VS Thread Class
Extending Thread over Implementing Runnable
creating a thread class
Thread & runnable
java thread help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015