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

Explain the difference between a Thread and a Process.

950


what is meant wrapper classes?

1110


Write a program to solve producer consumer problem in java?

962


What is purpose of find feature?

1037


What is a conditional equation?

978


What is qualitative variable?

881


What is the static field modifier?

1070


What is math floor in java?

892


What is the use of arraylist in java?

1036


what methods would you overwrite in java.lang.object class?

961


Can each java object keep track of all the threads that want to exclusively access it?

916


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

1006


What is Java Shutdown Hook?

1129


Why is java so important?

1069


How to perform selection sort in java?

963