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 meant by class and object in java?

1105


What does s mean in regex?

1066


Explain about sets?

1082


What is string pool in java?

1070


What access modifiers can be used for variables?

1202


What are the advantages of unicode?

1057


How many bits is a string?

1057


Can a class be a super class and a sub-class at the same time? Give example.

1614


Explain the difference between intermediate and terminal operations in java8?

1160


What are recursive functions?

1100


What is the difference between static (class) method and instance method?

1132


How do you compare two strings lexicographically?

976


How to obtain a performance profile of java program

1094


Is it necessary that each try block must be followed by a catch block?

1064


What is the concatenation operator in java?

1202