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

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



Answer: This group of methods that place a Runnable or Callable object in the queue for execution and returns an object of the Future interface that allows access to the value returned by the Callable object or allows management of the status of the worker thread


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :