What is daemon thread?

Answer Posted / vikki

daemon threads are created by the JVM unlike normal threads
which are created by the user.
The daemon threads provides services to the user-created
threads and they run in the background.
Hence to set them u have to write threadname.setDaemon
(true) and to check whether a thread is a daemon thread or
not you write isDaemon().

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

674


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

1836


Explain ioc concept?

729


Why does the tag url-encode javascript and mailto links?

675


What is synchronization and why is it important?

617






wahts is mean by dynavalidatorform in struts/

1668


Explain the difference between object state and behavior?

653


What is the difference between system.out ,system.err and system.in?

685


How is a java object message delivered to a non-java client?

655


What are the sequence of steps to write pub or sub model kind of application?

2059


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

675


Are there books about seam?

722


what is Activation Instantinator?

2004


Name the class that is used to bind the server object with RMI Registry?

1783


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1883