Which code fragment, when inserted at line 7, enables printing 100?

Given the code fragment:

Which code fragment, when inserted at line 7, enables printing 100?
A. Function<Integer> funRef = e -> e + 10; Integer result = funRef.apply(value);
B. IntFunction funRef = e -> e + 10;
Integer result = funRef.apply (10);
C. ToIntFunction<Integer> funRef = e -> e + 10; int result = funRef.applyAsInt (value);
D. ToIntFunction funRef = e -> e + 10; int result = funRef.apply (value);

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “Which code fragment, when inserted at line 7, enables printing 100?

Leave a Reply

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


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