Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Programming General (http://siteownersforums.com/forumdisplay.php?f=44)
-   -   Difference between future and completablefuture (http://siteownersforums.com/showthread.php?t=984717)

sahithya 09-17-2024 12:22 AM

Difference between future and completablefuture
 
Future
The Future API was introduced in Java 5 to reference the result of an asynchronous computation. However, it didn't have any methods to combine computations or handle errors.

CompletableFuture
The CompletableFuture class was introduced in Java 8. It implements the Future and CompletionStage interfaces, and provides a set of methods for creating, chaining, and combining multiple Futures.


All times are GMT -7. The time now is 08:52 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.