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 / srinu

you know that java does not supporting multiple inheritance
through classes .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 java.lang.Runnable interface.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lexicographically smallest string?

1023


What is meant by tab pans?

1147


Are static members inherited to sub classes?

1098


When is update method called?

1096


What is java object name?

947


What are triggers in DB? Explain their types. How do they work?

1042


What is meant by string is immutable?

1011


What are the object and class classes used for?

1003


What is an 8 bit word?

1007


Is logger a singleton?

899


Is oracle charging for java?

974


What restrictions are placed on method overloading?

1130


What is method overloading with type promotion?

1220


Can we compare two strings in java?

965


Write a program in java to find the maximum and minimum value node from a circular linked list.

1025