Oracle
1Z0-809 · Question #3
Given the code fragment: ``java BiFunction<Integer, Double, Integer> val = (t1, t2) -> t1 + t2; //line n1 System.out.println(val.apply(10, 10.5)); //line n2 `` What is the result?
The correct answer is C. A compilation error occurs at line n1. You've hit your session limit · resets 5:20pm (America/New_York)
Question
Given the code fragment:
BiFunction<Integer, Double, Integer> val = (t1, t2) -> t1 + t2;
//line n1
System.out.println(val.apply(10, 10.5));
//line n2
What is the result?Options
- A20
- B20.5
- CA compilation error occurs at line n1.
- DA compilation error occurs at line n2.
How the community answered
(32 responses)- A3% (1)
- B6% (2)
- C78% (25)
- D13% (4)
Explanation
You've hit your session limit · resets 5:20pm (America/New_York)
Community Discussion
No community discussion yet for this question.