I have checked Oracle Java API, which gives some info that FutureTask.isDone()
but I need to check whether the task has completed or terminated with any error. isDone() method will return even if it completes/terminates. But I need to know whether it's completed or terminated due to some problem.