Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaExecutorService usageSingle-choice MCQ

A task submitted with `submit(Runnable)` throws an uncaught RuntimeException. What happens to that exception?

ExecutorService ex = Executors.newSingleThreadExecutor(); Future<?> f = ex.submit(() -> { throw new IllegalStateException("hidden"); });