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

Explain about assignment statement?

984


What are the various access specifiers in java?

960


What is append in java?

1101


What is a void method java?

920


What is the use of java?

905


What are the fileinputstream and fileoutputstream?

1023


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2774


Compare java and python.

945


What is a java string?

1005


What is xslt in java?

942


What do you understand by casting in java language?

985


When does a class need a virtual destructor?

957


Can we write class inside a class in java?

929


What is a final class ?

1098


Can we have this () and super () together?

988