Page 1 of 1

About Question enthuware.ocpjp.ii.v11.2.3338 :

Posted: Sun Jun 23, 2019 8:19 am
by entitybean
Why is answer 2 marked green (correct)?

Code: Select all

Consumer c = System.out::println;
This will not make

Code: Select all

List.of(args).forEach(x);
compile. I think answer should be "Consumer x ..." instead of " Consumer c ..." ?

Re: About Question enthuware.ocpjp.ii.v11.2.3338 :

Posted: Sun Jun 23, 2019 8:42 am
by admin
You are right. Fixed.
thank you for your feedback!