A

Admin • 828.03K Points
Coach

Q. Which interface is used to represent a task that returns a result in Java?

  • (A) Runnable
  • (B) Callable
  • (C) Executor
  • (D) Future

Explanation by: Admin
`Callable` is similar to `Runnable`, but it returns a result and can throw a checked exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.