The ________ method of the ExecutorService interface is commonly used to submit a Callable task and returns a Future object.

  • execute
  • invokeAll
  • start
  • submit
In Java, the submit method of the ExecutorService interface is used to submit a Callable task and returns a Future object representing the result of the computation. This method is commonly used for asynchronous tasks that return results.
Add your answer
Loading...

Leave a comment

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