How can you handle exceptions in `CompletableFuture`?
You can use the `exceptionally()` method to catch exceptions in `CompletableFuture`, or use `whenComplete()` for logging purposes.
Thatâ€™s partially correct. While `exceptionally()` is indeed used for handling exceptions, `whenComplete()` is used for handling both success and failure, not just for logging.
Can you explain the difference between `handle()` and `exceptionally()`?