Showing posts with label Callable. Show all posts
Showing posts with label Callable. Show all posts

Difference between Runnable and Callable interface in Java?

Runnable and Callable interface both are designed to represent task, which can be executed by any thread. Both does same task for the programmer with few difference between each other. In this tutorial we...

Future and Callable in Java

In our previous tutorial we have see about Java Thread Pool with Executor Framework and simple example as how its works. By using same Thread pool we will see about Callable interface working in...