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 / abnish kumar rajput

If we are going for using extend with thread then there is
no need to create thread object because we have
automatically all the properties of thread class ,then reuse
all these properties.whereas If are going for implement with
thread then we have to create of thread class and then we
have to override all the methods of thread class.because of
abstract class .

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a method a function?

1004


What are daemon Threads in java?

1128


How to Sort Strings which are given in List and display in ascending order without using java api.

4339


what is bmg file and how to create that files?what will it contailn?

2296


How do you convert an int to a double in java?

1005


Is integer passed by reference in java?

971


What is port number in java?

989


Which is faster call by value or call by reference?

865


What is javac_g?

968


How do you use compareto in java?

924


How do you sort arrays in java?

878


please send me hr interview questions in it industry

2062


Why java is a platform independent? Explain

1005


What is difference between identifier and variable?

997


Explain the significance of listiterator.

1023