Given the code fragment: public void foo(Function<Integer, String> fun) {…} Which two compile?

By | January 7, 2023

Given the code fragment:
public void foo(Function<Integer, String> fun) {…}
Which two compile? (Choose two.)

Correct Answer: A,C
Explanation/Reference: