A Guide To CompletableFuture in Java with Examples | Asynchronous Operations in Java | Geekific
Java’s Future API was introduced in Java 5, and a Future is used as a reference to the result of an asynchronous computation. We previously explained and gave a lot of examples related to multi-threaded operations in Java, and in this video we further expand on this topic by tackling Completable Futures which were introduced in Java 8 and their main purpose was to handle the limitations of the Future class.
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals:
- SOLID Principles and Best Practices:
- Recursion Made Simple, Recursive Methods:
- Use-Case and Sequence Diagrams:
- What is a Thread? (Process, Program, Parallelism, Scheduler Explained):
- The Volatile and Synchronized Keywords in Java, Atomic Variables in Java:
- Creating Threads and Executing Tasks in Java (Thread, Runnable, Callable, Future, ExecutorService):
- Locks, Monitors and Semaphores Explained in Java, Optimistic Locking:
Stay updated on our weekly videos by subscribing to the channel:
All the code snippets can be found on GitHub under:
Timestamps:
00:00 Introduction
00:07 What are Completable Futures?
01:00 What are Future Limitations? Why Completable Futures?
02:49 Creating a Completable Future
03:54 Acting on a Completable Future
05:55 Combining Completable Futures
08:11 Exception Handling
09:21 Thanks for Watching!
#Geekific #CompletableFuture #Java #Multithreading
4 views
367
99
1 week ago 00:12:05 1
ZenBusiness Review 2024: What Makes It Stand Out?
1 week ago 00:00:14 1
A Powerful Darshan of the Kedarnath Temple’s Sacred Linga 🙏🏼
2 weeks ago 00:31:07 1
35 Advanced English Verb Rules
2 weeks ago 00:00:22 1
Do it! Other ways to say Daily English speaking practice English conversation