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

imolimen Runnabule inerface and extends Thread functionally
both are same.But implimenting RunnebleInterface more
advantage because of there is possibility extends more then
one class and also we can override run() only once.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the byte order of byte buffer?

961


Give us the name of the list layoutmanagers in java?

889


What methodology can be utilized to link to a database?

916


What is array length?

941


What is not object oriented programming?

884


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

1020


How do you sort words in java?

891


When is the finally clause of a try-catch-finally statement executed?

1007


Write a program to calculate factorial in java?

968


Why wait and notify methods are declared in object class?

990


What is thread safe in java?

954


What are the 6 boolean operators?

1037


What is java object name?

954


What is meant by class loader? How many types are there? When will we use them?

930


What is use of functional interface in java 8? Explain

965