Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Hi Friends, can you give difference between extending thread
class and implementing runnable interface.

Answers were Sorted based on User's Feedback



Hi Friends, can you give difference between extending thread class and implementing runnable interf..

Answer / ravikiran

By extending a thread class we will be restricted to the
implementation for single class only,by implementing
Runnable interface we will get extended for implementing
more than one thread

Is This Answer Correct ?    3 Yes 1 No

Hi Friends, can you give difference between extending thread class and implementing runnable interf..

Answer / murali.25

both will achieve the same functionality. Usually we implement runnable interface because if we extend thread and if we want to any application specific class, its not possible because java doesnt support multiple inheritance.

Is This Answer Correct ?    1 Yes 0 No

Hi Friends, can you give difference between extending thread class and implementing runnable interf..

Answer / nagendra kumar

1.extends Thread and implements Runnable both are
fuctionally same.
2.If we use "extends Thread" then there is no scope to
extend another class because java doesn't multiple
inheritance.
3.If we use "implements Runnable" then there is a scope to
extend another class.This definately advantage why because
a programmer wants to extends a class and also use Thread
class features they must use Runnable interface.

Is This Answer Correct ?    2 Yes 1 No

Hi Friends, can you give difference between extending thread class and implementing runnable interf..

Answer / abnish kumar rajput

If we are going for using extend with thread then there is
no need to create thread object because we have
automatically all the properties of thread class ,then reuse
all these properties.whereas If are going for implement with
thread then we have to create of thread class and then we
have to override all the methods of thread class.because of
abstract class .

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

What are memory tables?

0 Answers   Aspiring Minds,


What are class members by default?

0 Answers   Hexaware,


what is difference between abstract and interface? can i give real time example for the two topics?

7 Answers  


Explain about features of local inner class?

0 Answers  


What are the parameters used in Connection pooling?

1 Answers   IBM,


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,


Can a class extend more than one class?

0 Answers  


How does arrays sort work in java?

0 Answers  


What is meant by class loader and how many types are there?

2 Answers   Apple,


How many decimal digits is 64 bit?

0 Answers  


Differentiate between nested and inner class in java.

0 Answers   Akamai Technologies,


How to optimize the javac output?

0 Answers  


Categories