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

Define the remote interface?

1 Answers  


what are the advantages of JTA over JTS?

0 Answers  


Can I use javascript to submit a form?

0 Answers  


what is singleton class? where it mainly used in the projects?

5 Answers   Satyam, Wipro,


Is there a guarantee of uniqueness for entity beans?

0 Answers  


Is multiple try block is possible in single java Application......

3 Answers  


Can you write Java code for declaration of multiple inheritance in Java ?

6 Answers   Kingshir, Oracle,


Explain how will the struts know which action class to call when you submit a form?

0 Answers  


What are the implicit objects?

2 Answers   HCL,


What is the return type of interrupt method?

2 Answers  


what are the activation groupworks?

0 Answers  


What are the high-level thread states?

1 Answers  


Categories