The ______ interface is used when you want a task to return a value after execution in a thread.

  • Callable
  • Executable
  • Runnable
  • Threadable
In Java, the Callable interface is used when you want a task to return a value after its execution in a separate thread. It's similar to the Runnable interface but allows for a return value.
Add your answer
Loading...

Leave a comment

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