Thread Rating:
  • 0 Vote(s) - 0 Average
Share Thread:
Difference between future and completablefuture
#1
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.
Reply
[-] The following 1 user Likes charlesprabhu's post:
  • DediRock
#2
(09-17-2024, 07:23 AM)charlesprabhu Wrote: 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.


Do you often use it for asynchronous programming? Any favorite methods or use cases?
[Image: 4U7xjZ7.jpeg]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Ad

[-]
Top Articles
100+ Social Bookmarking Sites List
55+ Image Submission Sites List

[-]
Recent Posts
What are the top digital marketing tools..?
These tools help optimize SEO, social media, email marketing, and analytics efforts. Goo...Corporatesoldiers — 03:45 PM
Google SERP Changes & Algorithm Updates - October 2024
Anybody seeing increase in traffic this month? And I am not talking about Asian traf...UKcart — 02:45 PM
Google SERP Changes & Algorithm Updates - October 2024
Anybody seeing increase in traffic this month? And I am not talking about Asian traffi...danni — 02:44 PM
VPS Flash Sale For Only $11.88 USD On the First Year - Grab It Now!!!
Hello guys, A quick reminder: Our limited discounts on VPS hosting packages are still ...DediRock — 12:58 PM
https://seomotionz.com/
I wanted to share a list of some top digital marketing tools that I’ve found super useful...diggipm — 07:32 AM

[-]
Follow us on Facebook