Quick revision
The short answer
Runnable.run() returns nothing and cannot throw checked exceptions, while Callable.call() returns a value and may throw any exception. ExecutorService.submit() accepts both and returns a Future, but execute() accepts only a Runnable. FutureTask is the bridge: it implements RunnableFuture, so a thread can run it like a Runnable while it wraps a Callable (or an adapted Runnable) and exposes the result or exception through the Future interface.
What to remember
In this answer, we saw that Runnable returns nothing and cannot throw checked exceptions, while Callable returns a value and can throw. submit() accepts both and returns a Future, and execute() accepts only Runnable. FutureTask implements RunnableFuture, so threads run it as a Runnable while callers use it as a Future that holds the value or the exception. Executors.callable() adapts a Runnable for APIs that need a Callable.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Runnable.run() returns nothing and cannot throw checked exceptions, while Callable.call() returns a value and may throw any exception. ExecutorService.submit() accepts both and returns a Future, but execute() accepts only a Runnable. FutureTask is the bridge: it implements RunnableFuture, so a thread can run it like a Runnable while it wraps a Callable (or an adapted Runnable) and exposes the result or exception through the Future interface.
Why this question is asked
Every time we hand work to a thread pool we choose between these two interfaces, often without noticing, because a lambda can match either. The choice decides whether we get a result back and what happens to exceptions, which is the source of several real bugs. Interviewers ask it to check that we understand how executors connect a task to its result. In this answer, we will recap both interfaces, see how submit() and execute() treat them, look inside FutureTask, and finish with the adapter that turns a Runnable into a Callable.
1A Quick Recap of the Two Interfaces
Runnable has existed since Java 1.0. It has one method, void run(), and that method declares no exceptions. So a Runnable cannot return a value, and if its code calls something that throws a checked exception, such as IOException, it must catch it inside run(). Callable<V> arrived with java.util.concurrent in Java 5. Its single method is V call() throws Exception, so it returns a value of type V and may let any exception escape.
Notice that the same file-reading lambda compiles as a Callable but not as a Runnable. The reason is only the declared signature of the method each lambda implements.
2How submit() and execute() Treat Them
The Executor interface has only execute(Runnable). ExecutorService, which extends it, adds three submit() overloads: submit(Callable<T>) returning Future<T>, submit(Runnable) returning Future<?>, and submit(Runnable, T result) returning Future<T> that yields the given result when the Runnable completes. A Future, a handle to a result that may not exist yet, lets us wait for the result with get(), check isDone(), or cancel().
When we pass a lambda, the compiler picks the overload from the lambda's shape. A lambda whose body is an expression that produces a value, such as 6 * 7, matches Callable. A lambda whose body is a statement, or a call to a void method, matches only Runnable. So the type we get back is decided by what our lambda body looks like.
3Inside FutureTask
submit() needs something that a pool thread can run and that the caller can wait on. That is FutureTask<V>. It implements RunnableFuture<V>, an interface that extends both Runnable and Future<V>. AbstractExecutorService.submit() wraps our task in a FutureTask through newTaskFor(), passes it to execute(), and returns the same object to us as the Future.
When a pool thread calls FutureTask.run(), it calls the wrapped Callable's call(). If call() returns, FutureTask stores the value and moves to a completed state; if call() throws, FutureTask catches the exception and stores it instead. Either way it then wakes every thread blocked in get(). A later get() returns the value, or throws ExecutionException with the stored exception as its cause. Its states move one way only, from NEW to normal completion, to an exception, or to cancelled, which is why a FutureTask runs at most once.
8 messages in order. Play them, or step through them one at a time.
The object we get back from submit() is the same object the pool thread runs.
4Adapting a Runnable With Executors.callable()
Sometimes an API wants a Callable but we have a Runnable, for example invokeAll(), which only accepts a collection of Callables. Executors.callable(Runnable) returns a Callable<Object> that runs the Runnable and returns null, and Executors.callable(Runnable, T result) returns the result we give it. FutureTask uses the same adapter internally: new FutureTask<>(runnable, result) converts the Runnable to a Callable and stores the fixed result.
So in the end the whole executor machinery works with Callables, and Runnables are converted at the edge.
5Which One Should We Use?
We use Callable when the caller needs a result or when the task calls methods that throw checked exceptions, because it lets them propagate into the Future instead of forcing a try/catch inside the task. We use Runnable for fire-and-forget work, for APIs that only accept Runnable such as Thread and execute(), and for scheduled jobs. But there is a catch with submit(Runnable): the exception is captured in a Future we often ignore, so failures vanish silently. If nobody will call get(), it is safer to use execute() or to catch and log inside the task.
6Follow-up questions
Why does submit(Runnable) return Future<?> and not Future<Void>?
Because the Future's get() returns null for a plain Runnable, and the wildcard says the caller should not rely on any particular type. If we want a typed result, we use the submit(Runnable, T result) overload, which returns Future<T> and yields that result on completion.
Can a Callable be run on a plain Thread?
Not directly, because Thread only takes a Runnable. We wrap it in a FutureTask, which is a Runnable, pass that to the thread, and read the result from the FutureTask's get().
What happens if we call get() on a cancelled FutureTask?
It throws CancellationException. If the task was cancelled with cancel(true) while running, its thread is also interrupted, and the task's own code decides whether it actually stops.
7Conclusion
In this answer, we saw that Runnable returns nothing and cannot throw checked exceptions, while Callable returns a value and can throw. submit() accepts both and returns a Future, and execute() accepts only Runnable. FutureTask implements RunnableFuture, so threads run it as a Runnable while callers use it as a Future that holds the value or the exception. Executors.callable() adapts a Runnable for APIs that need a Callable.
Open with
Runnable's run method returns void and can't throw checked exceptions, so it's for work where we don't need a result. Callable's call method returns a value and declares throws Exception, so checked exceptions can escape and reach the caller.
Then, if they want more
On ExecutorService, submit accepts both a Runnable and a Callable and returns a Future, while execute, which comes from the base Executor interface, takes only a Runnable and returns nothing. With lambdas, the compiler picks the overload from the body: an expression that produces a value becomes a Callable, a void call becomes a Runnable. FutureTask is what connects them.
It implements RunnableFuture, which is both a Runnable and a Future. submit wraps my task in a FutureTask, hands it to execute, and returns that same object to me.
When a pool thread runs it, it calls the Callable, stores either the result or the exception, and wakes anyone blocked in get, which then returns the value or throws ExecutionException with the cause. If I have a Runnable and an API needs a Callable, like invokeAll, Executors.callable adapts it and returns null or a fixed result.
One practical point: with submit and a Runnable, an exception lives in the Future, so if nobody calls get, it's silently lost.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 5
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- java.util.concurrent, package documentation, JLS chapter 17, Threads and Locks
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Compare Runnable and Callable, and explain how FutureTask relates to them.": https://scrivio-interview-library.netlify.app/java/threads/1f3bfcf8a2/