About Question enthuware.ocpjp.v11.2.3338 :
Posted: Tue Jan 31, 2023 5:18 am
Hello, can you please explain why below answer is correct? Am assuming a variable needs to be passed to Consumer. Thanks
Consumer x = System.out::println;
Consumer x = System.out::println;