Why do we use Future in Java?

The Future class in Java is another way to write asynchronous code . By using Future and FutureTask, you can write a method that does long computation but returns immediately. Those methods, instead of returning a result, return a Future object. You can later get the result by calling the Future.

Read more