Java Threading Question and Answers
25. | Is there any limitation on the number of daemon threads in an application? |
---|---|
No, there is no limitation on the number of daemon threads in an application. | |
26. | What is the use of Join method? |
---|---|
The join method allows one thread to wait for the completion of another. If "t" is a Thread object whose thread is currently executing. t.join(); | |
27. | Can each Java object keep track of all the threads that want to exclusively access to it? |
---|---|
Yes | |
28. | What are some of the improvements in Concurrency API in java 8? |
---|---|
Some important concurrent API enhancements are
|
|