Which of the following lambda expressions can be passed to a method that takes IntUnaryOperator as an
Question:
Which of the following lambda expressions can be passed to a method that takes IntUnaryOperator as an argument? (Choose three.)
A. v -> {System.out.print("Hello!"); return 2%1;}
B. (Integer w) -> w.intValue()
C. (int
j) -> (int) 30L
D. (int q) -> q / 3.1
E. (long x) -> (int) x
F. z -> z.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: