This post originated from an RSS feed registered with Java Buzz
by Arpit Mandliya.
Original Post: Java FutureTask example
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
In this tutorial, we will see about Java FutureTask example. FutureTask class has been introduced in JDK 5 with Executor Framework. FutureTask class is the concrete implementation of the Future object and provides methods for start and cancel the task.It also provides method to see if the computation is done or not. We can query FutureTask object and get the result of computation. If we call get method on FutureTask object, it is blocking call and returns once the computation is done. Let’s understand more with the example. Java FutureTask example: Let’s create a very simple example. Step 1: Create