Which method is used to create the daemon thread?



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

Answer / Nitesh Nayal

In Java, a thread can be made a daemon by setting its daemon status to true using the `setDaemon()` method. Daemon threads are used for background tasks and do not prevent the JVM from exiting when all non-daemon threads have finished.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java Related AllOther Interview Questions

What is the need to declare main() method as static in Java?

12 Answers  


What is stateless class in java?

1 Answers  


Why is javac not recognized?

1 Answers  


What are the differences between java’s old java date api and java 8’s date and time api?

1 Answers  


Is java installed on windows 10?

1 Answers  


What is ibatis in java?

1 Answers  


Which is faster c++ or java?

1 Answers  


What is a stream in programming?

1 Answers  


What is the resourcebundle class?

0 Answers  


How do I download and install eclipse on windows 10?

1 Answers  


What is the use of rs next () in java?

1 Answers  


Expain ur organisation process( V-model)?.

1 Answers   Cap Gemini,


Categories