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

What is visibility mode?

969


What is difference between word and integer?

1079


Difference between final and effectively final ? Why is effectively final even required ?

994


What is the applet security manager, and what does it provide?

999


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1618


What are the pillars of java?

920


How does thread synchronization occurs inside a monitor?

1103


What are the common uses of "this" keyword in java ?

1024


What do you understand by Header linked List?

1107


How can I debug the Java security exceptions and AccessControlExceptions?

1155


What is a char in java?

1046


What is difference between module and function?

1187


Why can't we make a class private in java?

1039


Describe string intern() methodology

1069


What are byte codes?

1227