The program below does not compile. Which statement correctly describes the problem?
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class Main {
public static void main(String[] args) {
ExecutorService pool = Executors.newFixedThreadPool(2);
Future<Integer> f = pool.submit(() -> 6 * 7);
System.out.println(f.get());
pool.shutdown();
}
}
javac: "unreported exception InterruptedException; must be caught or declared to be thrown".