Java
hardQ1
What is the output of: ExecutorService executor = Executors.newSingleThreadExecutor(); Future<Integer> future = executor.submit(() -> 42); System.out.println(future.get());
1 / 10
What is the output of: ExecutorService executor = Executors.newSingleThreadExecutor(); Future<Integer> future = executor.submit(() -> 42); System.out.println(future.get());