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 meant by multi-threading?

6 Answers  


How u validate date in DD/MM/YY format. and how u validate money in ur jsp

3 Answers   Ashok Leyland, Satyam, Tech Mahindra, Tomax,


Is the infobus client side only?

0 Answers  


diff between jsp include directive and jsp action include?

2 Answers   SolutionNET,


Explain about thread synchronization inside a monitor?

0 Answers   Saksoft,






Name three subclasses of the component class?

0 Answers  


What is runnable?

2 Answers  


What is Lock Based Protocol and what is its use?

2 Answers   Wipro,


What is rmic?

4 Answers  


How many JSP scripting elements and what are they?

4 Answers   TCS,


What are the implicit objects?

2 Answers   HCL,


what is an isolation level?

0 Answers  


Categories