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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

984


what do you mean by java annotations?

1133


What was java originally called?

956


Will minecraft java be discontinued?

1169


What are thread local variables?

1152


What are scalar data types?

1070


What are the benefits of operations in java?

1052


How to convert string to char and vice versa?

1004


What is difference between adapter class and listener?

1044


Explain the difference between abstract class and interface in java?

983


What are the methods of object class ?

1062


What is the syntax and characteristics of a lambda expression? Explain

1048


What is the difference between an if statement and a switch statement?

1166


Which collection allows duplicate values in java?

971


Is stringwriter thread safe?

998