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 are JSP tags? what is difference between include action and directory?

0 Answers   ADP,


What is difference between object state and behavior?

0 Answers  


How has the sandbox changed with Java 2?

2 Answers  


What class is the top of the awt event hierarchy?

0 Answers  


Explain the different types of memory used by jvm?

0 Answers  


What is rmic?

4 Answers  


whats is mean by filter?

1 Answers   SolutionNET,


whats is mean by class.forName() whats the return type of class

3 Answers   SolutionNET,


Is jvm a overhead?

0 Answers  


What is the difference between the session.update() method and the session.lock() method?

0 Answers  


What is the difference between the font and fontmetrics classes?

0 Answers  


Why a client should be multithreading? Explain.

0 Answers  


Categories