What is Future in Java multithreading?

Think of a Future as an object that holds the result – it may not hold it right now, but it will do so in the future (once the Callable returns). Thus, a Future is basically one way the main thread can keep track of the progress and result from other threads.28 Haz 2021

Sizin İçin Seçtik  Why do we use Future in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *