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

Differences between C and Java?

1282


What is primitive data type in java?

1033


What is the inheritance?

1020


What is floating data type?

1028


Explain an algorithm to find depth of a binary tree.

1097


What does += mean coding?

994


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1134


What is the purpose of default constructor?

1034


What is null object in java?

1056


What is an example of declaration?

1077


What are the different types of garbage collectors in java?

1204


describe method overloading

1076


Why declare Main() inside the class in java ?

1114


Explain the difference between arraylist and linkedlist in java?

1022


What is the difference between serializable and externalizable interface?

1163