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

In howmany ways a thread can be created?

Answer Posted / rajshekhar

There are 2 ways to create a thread
1.By extending thread class
2.and the second one is by implementing runnable
interface.among the two the second one is more common and
better to use.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When a thread blocks on i/o, what state does it enter?

1096


Why is string immutable in java?

1102


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

1545


What is TL and its use?

2488


how to use debug in my elipse to solve problems that exist in my project

2283


what are the advantages of JTA over JTS?

2211


Why does the option tag render selected=selected instead of just selected?

1178


Difference between hashmap and hashtable?

1159


What is a policy?

2305


wahts is mean by dynavalidatorform in struts/

2080


What event results from the clicking of a button?

1253


what are getters and setters in Java with examples?

1781


What is meant by method chaining?

1150


what is a non-repeatable read?

2430


What are the design considerations while making a choice between using interface and abstract class?

1097