1.

What Is The Role Of Futuretask And Future In Java?

Answer»

FutureTask is a cancellable asynchronous COMPUTATION in java. It can cancel the TASK which is RUNNING. Once the FutureTask will be cancelled, it cannot be restarted. Future is RESULT of asynchronous computation. Future checks if task is complete and if completed it gets the OUTPUT.

FutureTask is a cancellable asynchronous computation in java. It can cancel the task which is running. Once the FutureTask will be cancelled, it cannot be restarted. Future is result of asynchronous computation. Future checks if task is complete and if completed it gets the output.



Discussion

No Comment Found