The ______ method of the Future interface is used to check if the task is done or not.

  • checkDone()
  • hasCompleted()
  • isDone()
  • taskStatus()
In Java, the isDone() method of the Future interface is used to check if a task submitted to a ExecutorService is completed or not. It returns true if the task is done; otherwise, it returns false.
Add your answer
Loading...

Leave a comment

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