Which type of lambda expression is passed into 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.lang.Runnable
B. java.util.function.Predicate
C. java.util.function.Function
D. java.util.concurrent.Callable

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which type of lambda expression is passed into submit()?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.