Which of the following provides a better alternative to manually creating threads?

  1. ThreadGroup
  2. Runnable
  3. Executors
  4. ThreadPoolExecutor
Correct answer Executors

Explanation

`Executors` class provides thread pool management and task submission methods.

Update: Admin added a tag on this question

Topics

By Admin · · 49 views