What is the function of the isTerminated() method(s) of the ExecutorService interface of the java.util.concurrent package?

What is the function of the isTerminated() method(s) of the ExecutorService interface of the java.util.concurrent package?



Answer: Checks whether all the worker threads have completerd after the shutdown was initiated. It never returns true unless either shutdown() or shutdownNow() was called first.


Learn More :