What is the primary advantage of using an ExecutorService to manage threads?

  • Automatic garbage collection
  • Better control over thread creation and reuse
  • Greater parallelism and multi-threading control
  • Simplicity in managing threads
The primary advantage of using an ExecutorService to manage threads is better control over thread creation and reuse. It provides a higher-level abstraction for managing thread execution, which can lead to more efficient and scalable applications. The other options do not accurately describe the primary advantage of using an ExecutorService.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *