What is the difference between Callable and Runnable?

Callable and Runnable are both interfaces used to execute tasks in a separate thread, but they serve different purposes. Runnable is suitable for tasks that do not need to return a value, whereas Callable is designed for tasks that need to produce a result or may throw checked exceptions. Callable works with Future objects, allowing the caller to retrieve the result after task completion.

Key Points

Example

Suppose you want to send an email notification in the background without expecting any response. Runnable is sufficient. However, if you need to calculate a report and return the generated result, Callable is the better choice.

import java.util.concurrent.*;

public class CallableVsRunnable {

    public static void main(String[] args) throws Exception {

        ExecutorService executor = Executors.newFixedThreadPool(1);

        Callable<String> callableTask = () -> {
            return "Task Completed Successfully";
        };

        Future<String> future = executor.submit(callableTask);

        System.out.println(future.get());

        executor.shutdown();
    }
}

Interview Tip

A concise interview answer is: "Runnable is used for tasks that do not return a result and cannot throw checked exceptions, whereas Callable can return a value, throw checked exceptions, and is typically executed through ExecutorService with a Future object."

Last updated: 16 July 2026

Previous question: What is the difference between wait() and sleep() methods?

Next question: What is Future in Java?

More Core Java - Level III interview questions

All Core Java - Level III questions