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...

why Runnable interface is preferable than extending the
Thread class?

Answer Posted / suresh

u know that java not supporting multiple inheritance.if u
extend thread class,u can't extend any class which you
required other than thread class.if u are implementing
runnable interface u can extend any class which you required
other than thread class.this is main advantage of
implementing runnable interface.

Is This Answer Correct ?    115 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between forwarding () method and sendredirect() methods?

1053


What is the use of coding?

910


Difference between final and effectively final ? Why is effectively final even required ?

927


What is the difference between method overriding and overloading?

1171


what is session in java?

1176


Which graphs are functions?

898


What is difference between stringbuffer and string?

897


How does class forname work in java?

911


What is :: operator in java 8?

953


What is meant by final class?

1009


What are the different ways of implementing thread? Which one is more advantageous?

936


Can an interface be final?

971


What is variable length arguments in java?

906


Explain the available thread states in a high-level?

907


How do you declare a string variable?

955