In this video, we don't just learn Callable and Future, we build them from scratch.
We start by feeling the real limitations of Runnable, why you can't return a value and why checked exceptions are a compiler-forced problem. Then instead of just introducing Callable and Future directly, we design our own interfaces and classes from ground up, so that by the time we see Java's actual classes, everything feels familiar.
Here's what we cover:
Limitations of Runnable
Designing our own Callable interface from scratch
Designing our own Future interface
How exceptions can cross thread boundaries
Working example with ExecutorService.
Timelines:
00:00 - Introduction and Agenda
00:42 - Why we need Runnable
01:39 - Limitations of Runnable
05:00 - Designing our own Callable and Future
20:39 - Example of Callable & Future with ExecutorService
26:54 - More about different methods of Future Class
30:25 - Ending notes
By the end of this video, you won't just know how to use Callable and Future, you'll understand exactly why they exist and how they work internally.
Useful links:
Java Interrupts: • #14 Java Interrupt Explained Simply | Thre...
Odd/Even Printer problem: • #1 Odd-Even Printer with Threads | Memory ...
#Java #Multithreading #ExecutorService #ThreadPool #Callable #Future #JavaConcurrency #javathreads #threads #interview
Auf dieser Seite können Sie das Online-Video #19 Callable and Future in Java - Why Runnable is NOT Enough? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Bits of Code by Anand 22 Februar 2026 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 354 Mal angesehen und es wurde von 22 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!