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

What is more advisable to create a thread, by implementing
a Runnable interface or by extending Thread class?

Answer Posted / harish

When u extend a Thread each of your thread has a unique
object associated with it,where as with Runnable interface
may threads share the same object instance.

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 point of java?

968


State the significance of public, private, protected class?

1029


What is arrays sort in java?

912


What are the differences between throw and throws?

1029


How many bytes is a string in java?

931


Explain about exception propagation?

973


Can constructor return value?

903


What are the methods available in a class?

1012


Explain differences between collection api and stream api?

1088


What is character in data type?

918


When should I use singleton?

958


Is there any case when finally will not be executed?

900


What are three advantages of using functions?

955


Name some OOPS Concepts in Java?

1019


How do you detect memory leaks?

1005