Java Multithreading Question and Answers
13. | What are different ways in which a thread can enter the waiting state? |
---|---|
A thread can enter the waiting state by the following ways
|
|
14. | What are the benefits of multi threaded programming? |
---|---|
|
|
15. | Which method is used to create the daemon thread? |
---|---|
setDaemon method is used to create a daemon thread. | |
16. | What state is a thread in when it is executing? |
---|---|
An executing thread is in the running state. | |