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

What are various types of class loaders used by jvm?

500


What if the static modifier is removed from the signature of the main method?

709


What are the design considerations while making a choice between using interface and abstract class?

543


What method is invoked to cause an object to begin executing as a separate thread?

572


What restrictions are placed on the values of each case of a switch statement?

537






Is there a guarantee of uniqueness for entity beans?

572


What are the types of scaling?

558


Why are my checkboxes not being set from on to off?

650


Are we allowed to change the transaction isolation property in middle of a transaction?

567


Name three component subclasses that support painting?

618


What is the purpose of the wait() method?

621


Describe responsibilities of Activator?

1677


What is the purpose of the wait(), notify(), and notifyall() methods?

572


What do you know about seam?

602


What is a sessionfactory? Is it a thread-safe object?

685