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

Many Java programmers feel that classes should be extended
only when they are enhanced or modified in some way.So,if
you will not be overriding any of Thread's other methods,it
is probably best simply to implement Runnable.

Is This Answer Correct ?    32 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why declare Main() method as a static in java ?

1028


What is jvm? How its run?

1030


What is a heavyweight component?

989


Why isn’t there operator overloading?

1021


What does singleton mean in java?

954


How to perform bubble sort in java?

960


What are the disadvantages of object oriented programming?

1193


What is the maximum size of array in java?

936


when to use ArrayList and when to use HashMap in webApplication.

4604


What mechanism does java use for memory management?

928


What is the formula to calculate percentage?

971


Can we declare an array without size in java?

928


What is a constructor, constructor overloading in java?

970


How do we access static members in java?

1070


What is += mean in java?

960