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

Explain serialization and deserialization in java?

939


What are the states of thread in java?

918


Why Java doesn’t support multiple inheritance?

988


What is the difference between jvm and jre? What is an interface?

1014


What data type is a string?

959


Can a class extend more than one class?

1052


How can we access some class in another class in java?

936


What is the class in java?

960


What is the default size of load factor in hashing based collection?

986


What is scope & storage allocation of static, local and register variables? Explain with an example.

962


What is quick sort in java?

943


Discuss about garbage collector in Java.

1029


How do you clear a list in java?

1041


How can you read content from file in java?

962


What is the file extension for java?

1019