Skip to content
CodeKruPro

ExecutorService, Runnable and Callable

QuizEasy-MediumJava onlyAsked in: Capgemini, Deloitte

Which statements are true? Pick all that apply.

  • A Callable returns a value and may throw a checked exception; a Runnable does neither
  • executor.submit(task) returns a Future
  • future.get() returns at once, even if the task is still running
  • An executor with ordinary threads should be shut down when you are done

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in