What is `CompletableFuture` in Java?
`CompletableFuture` is a class that represents a future result of an asynchronous computation. It allows non-blocking asynchronous execution and provides methods to handle the result when it becomes available.
Excellent! You've accurately described `CompletableFuture`.
Can you explain how `CompletableFuture` differs from `Future` in terms of handling asynchronous tasks?