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
What are various types of class loaders used by jvm?
What if the static modifier is removed from the signature of the main method?
What are the design considerations while making a choice between using interface and abstract class?
What method is invoked to cause an object to begin executing as a separate thread?
What restrictions are placed on the values of each case of a switch statement?
Is there a guarantee of uniqueness for entity beans?
What are the types of scaling?
Why are my checkboxes not being set from on to off?
Are we allowed to change the transaction isolation property in middle of a transaction?
Name three component subclasses that support painting?
What is the purpose of the wait() method?
Describe responsibilities of Activator?
What is the purpose of the wait(), notify(), and notifyall() methods?
What do you know about seam?
What is a sessionfactory? Is it a thread-safe object?