Question 6
Back to Exercise
Which statement is correct?
- A shutdown kills running tasks
- B shutdown lets queued and running tasks finish but accepts no new ones; shutdownNow interrupts running tasks and returns the queued ones Correct
- C shutdownNow waits for all tasks
- D Both are the same
Correct Answer: Option B
awaitTermination waits for the pool to finish.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!