Question: Which expression is compatible with the IntSupplier functional interface? A. () -> 1 <10 ? 3 : 4 B. () -> {return 1/0;} C. ()

Which expression is compatible with the IntSupplier functional interface? 

A. () -> 1<10 ? "3" : 4

B. () -> {return 1/0;}

C. () -> return 4

D. System.out::print

E. None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The IntSupplier functional interface in Java is a special kind of functional interface that doesnt t... 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!