Loading…
Loading…
Ten exam-style questions on the Concurrency API: Executors factory methods, execute versus submit, Callable versus Runnable lambdas, Future.get and ExecutionException, invokeAll and invokeAny, shutdown and close, and scheduling, with explanations.
Practice questions for the article Java ExecutorService: Runnable, Callable, Future, invokeAll and Scheduling.
Every compile and output claim was checked against a real JDK. Aim for at least 8 out of 10.
Quiz path: step 91. Take the quizzes in this order, after reading each article.
Previous quiz: Platform and Virtual Threads (OCP 21)
Next quiz: Thread Safety, volatile, Atomic Classes and synchronized (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.