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

Hi Friends, can you give difference between extending thread
class and implementing runnable interface.

Answer Posted / murali.25

both will achieve the same functionality. Usually we implement runnable interface because if we extend thread and if we want to any application specific class, its not possible because java doesnt support multiple inheritance.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the constructor and how many types of constructors are used in java?

998


What is the difference between a switch statement and an if statement?

1088


Why are the methods of the math class static?

1070


Why char array is preferred over string for storing password?

1097


What are autoboxing and unboxing? When does it occur?

947


What super () does in java?

904


What is the purpose of the system class in java programming?

1097


Java.util.regex consists of which classes?

993


What is boolean query?

973


Can you explain inner class.

1076


How big is a 64 bit float?

1026


Which category the java thread do fall in?

995


What is floor math?

993


Explain Basics of OOP Language in java

1052


What are recursive functions? Give some examples?

1191