Here is the implementation of some methods of FutureTask in Java:
FutureTask
run method:
run
public void run() { if (state != NEW ||