Question: Which lambda expression cannot be assigned to a DoubleToLongFunction functional interface? A. a -> null==null ? 1 : 2L B. e -> (int)(10.0*e) C. (double

Which lambda expression cannot be assigned to a DoubleToLongFunction functional interface? 

A. a -> null==null ? 1 : 2L

B. e -> (int)(10.0*e)

C. (double m) -> {long p = (long)m; return p;}

D. (Double s) -> s.longValue()

E. All of these can be assigned.

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The answer to your question is B e int100e Lets analyze each option A a nullnull 1 2L This lambda ex... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!