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

What is the map interface?

0 Answers  


What is the purpose of the notify() method?

0 Answers  


What exceptions are thrown by RMI?

1 Answers  


What is the relationship between the canvas class and the graphics class?

0 Answers  


How can a dead thread be restarted?

1 Answers   IBM, Wipro,


what is the Scope of Final Keyword in Java?

1 Answers   HCL,


What is Connection Pooling?

1 Answers   Enteg Technologies, Infosys, Polaris,


How task's priority is used in scheduling?

0 Answers   HCL,


Tell me about Firewalls in RMI?

0 Answers  


What does module-relative mean?

0 Answers  


What is the purpose of the notifyall() method?

0 Answers  


What are the difference between RMI and CORBA?

0 Answers  


Categories