Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

future

Frantic Flatworm answered on February 22, 2023 Popularity 10/10 Helpfulness 2/10

Contents


More Related Answers

  • fuzzing

  • future

    3
    Popularity 10/10 Helpfulness 2/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jun 30 2023
    Frantic Flatworm
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0

    Executors class provide useful methods to execute Callable in a thread pool.

    Since callable tasks run in parallel, we have to wait for the returned Object.

    Callable tasks return java.util.concurrent.Future object.

    Using Future we can find out the status of the Callable task and get the returned Object.

    It provides get() method that can wait for the Callable to finish and then return the result.

    So, Future is basically a placeholder for the object which is going to be

    returned by the callable task at any time in future. 


    Popularity 10/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on Feb 22 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.