What is the function of the Future submit(Runnable task) method of the ExecutorService interface?

What is the function of the Future<?> submit(Runnable task) method of the ExecutorService interface?



Answer: Submits the thread for execution, returning a Future representing the task. The get() method of the returned Future object returns null because the run() method of the Runnable object doesn't return anything


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :