What is the function of the newCachedThreadPool() method(s) of the Executors class of the java.util.concurrent package?

What is the function of the newCachedThreadPool() method(s) of the Executors class of the java.util.concurrent package?



Answer: Createss a thread pool that adds a new thread as needed, unless there is an idle thread created before. Threads that have been idle for 60 seconds are removed from the pool


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :