Given the code fragment:
What is the result?
A. 4000.0
B. 4000
C. A compilation error occurs at line n1.
D. A compilation error occurs at line n2.
Given the code fragment:
What is the result?
A. 4000.0
B. 4000
C. A compilation error occurs at line n1.
D. A compilation error occurs at line n2.
D
if we presume that line n2 is line .map(lv->uo1.apply(lv))
D
D.
n2 is the one with .map()
UnaryOperator does have Integer generic, but the stream is on Double
d is right