ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

67 / 130

Question 67:

Given the code fragment: BiFunction<Integer, Double, Integer> val = (t1, t2) -> t1 + t2; //line n1 System.out.println(val.apply(10, 10.5)); What is the result? 

Answer options:

A. 20
B. 20.5
C. A compilation error occurs at line n1.
D. A compilation error occurs at line n2.