Hi,
As specified in
=> FUTURE <= A Future represents the result of an asynchronous computation.As far as my understanding goes... The task you are trying to perform asynchronously, will go in as a Runnable task to
e.g. a complex calculation . This will return a future object like
. Now if you want to check whether the calculation (being done by the
thread that has spawned for the runnable task) is over, you can call
. However,this Thread (which is carrying out the invocation of get()) waits if necessary for the computation to complete, and then retrieves its result.
Please post if you have any particular problem, that needs a solution.
Cheers,
Rohit