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?



What method is used to create the daemon thread?..

Answer / 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

More Advanced Java Interview Questions

How are the elements of a cardlayout organized?

0 Answers  


What is the lifecycle of an applet?

2 Answers  


What is a tasks priority and how is it used in scheduling?

0 Answers  


can any one tell me how to learn good coding techniques

3 Answers  


What is the need of serialize?

2 Answers   Wipro,


If your ui seems to freeze periodically, what might be a likely reason?

0 Answers  


What are different types of layout managers in java.awt package?

3 Answers   Android, CA,


What is bean? Where can it be used?

0 Answers  


What is the immediate superclass of the applet class?

0 Answers  


What are the various thread priorities?

1 Answers  


What is preemptive and Non-preemptive Time Scheduling?

6 Answers   Cognizant,


How database connectivity in XML is achieved?

0 Answers  


Categories