ExecutorService, Runnable and Callable
QuizEasy-MediumJava onlyAsked in: Capgemini, Deloitte
Which statements are true? Pick all that apply.
- A
Callablereturns a value and may throw a checked exception; aRunnabledoes neither executor.submit(task)returns aFuturefuture.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.