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 method is used to create the daemon thread?

Answer Posted / ranganathkini

the Thread.setDaemon() has to be invoked. It takes one
boolean param indicating if the thread is a daemon thread
or not. the setDaemon() has to invoked before the start()
method is called on the thread, else an
IllegalThreadStateException is throw indicating that the
thread is active and its daemon state cannot be altered.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2287


Should synchronization primitives be used on bean methods?

1076


What is the immediate superclass of the applet class?

1092


Why do I get a duplicate name error when loading a jar file?

1159


What is the difference between session and entity beans?

1127


Which component handles cluster communication in jboss?

1120


What are the benefits of detached objects?

1054


Explain ioc concept?

1157


What are transaction attributes?

1120


Do we need to override service() method

1738


wahts is mean by dynavalidatorform in struts/

2081


What happens when a thread cannot acquire a lock on an object?

1045


Why won’t the jvm terminate when I close all the application windows?

1253


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1063


what is a non-repeatable read?

2439