Java Multithreading Question and Answers
5. | What is daemon thread? |
---|---|
Daemon thread is a low priority thread, which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. | |
6. | What is the use of volatile in Java? |
---|---|
|
|
7. | Is there a separate stack for each thread in java? |
---|---|
No | |
8. | What is the difference between multithreading and multitasking? |
---|---|
|
|