PrepZone Logo
PrepZone
Back to Java

Java · Easy

Difference between Callable and Runnable. When would you prefer Callable?

JavaConcurrency

Answer preview

Runnable and Callable are both functional interfaces for tasks executed by threads or executor services, but they differ in return type and exception handling.…