intermediateMultithreading & Concurrency255 of 436

Difference between Runnable and Callable.

Tests whether you know Runnable.run() returns nothing and can't throw checked exceptions, while Callable<V>.call() returns a value and can throw checked exceptions -- which is exactly why ExecutorService.submit() with a Callable gives you a Future you can inspect for both result and failure.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

← Back to all Core Java questions