Tag Archives: pool.submit

Given the code fragment: var pool = Executors.newFixedThreadPool(5); Future outcome = pool.submit(()

Given the code fragment:var pool = Executors.newFixedThreadPool(5);Future outcome = pool.submit(() > 1);Which type of lambda expression is passed into submit()? A. java.util.function.Function B. java.util.concurrent.Callable C. java.util.function.Predicate D. java.lang.Runnable Correct Answer: B