Question 1
Back to Exercise
What is the main advantage of an ExecutorService over creating a new Thread for every task?
- A Tasks run faster individually
- B Threads are reused and limited, tasks are queued, and results come back as Futures Correct
- C It removes the need for synchronization
- D It runs tasks on the GPU
Correct Answer: Option B
Creating threads is expensive; pools reuse them.
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!